| 199 | } |
| 200 | |
| 201 | void commitLearn() { |
| 202 | if (learningId < 0) |
| 203 | return; |
| 204 | if (!learnedCc) |
| 205 | return; |
| 206 | if (!learnedParam) |
| 207 | return; |
| 208 | // Reset learned state |
| 209 | learnedCc = false; |
| 210 | learnedParam = false; |
| 211 | // Find next incomplete map |
| 212 | while (++learningId < MAX_CHANNELS) { |
| 213 | if (ccs[learningId] < 0 || paramHandles[learningId].moduleId < 0) |
| 214 | return; |
| 215 | } |
| 216 | learningId = -1; |
| 217 | } |
| 218 | |
| 219 | void enableLearn(int id) { |
| 220 | if (learningId != id) { |
nothing calls this directly
no outgoing calls
no test coverage detected