prevent using same timer channel twice
This commit is contained in:
parent
4433dbb518
commit
b29329c061
|
@ -328,7 +328,8 @@ static void bbFindPacerTimer(void)
|
|||
}
|
||||
|
||||
for (int index = 0; index < bbPortIndex; index++) {
|
||||
if (bbPorts[index].timhw == timer) {
|
||||
const timerHardware_t* t = bbPorts[index].timhw;
|
||||
if (timerGetTIMNumber(t->tim) == timNumber && timer->channel == t->channel) {
|
||||
timerConflict = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue