prevent using same timer channel twice

This commit is contained in:
Thorsten Laux 2019-09-14 09:09:52 +02:00
parent 4433dbb518
commit b29329c061
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}