mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Fix timerUpConfig initialization and TIMER_INDEX macro usage
This commit is contained in:
parent
c6ba65dfd8
commit
c9640b3387
4 changed files with 38 additions and 32 deletions
|
@ -5425,10 +5425,9 @@ static void printPeripheralDmaoptDetails(dmaoptEntry_t *entry, int index, const
|
|||
int uiIndex;
|
||||
|
||||
if (entry->presenceMask) {
|
||||
if (!(BIT(index + 1) & entry->presenceMask)) {
|
||||
uiIndex = timerGetNumberByIndex(index);
|
||||
if (!(BIT(uiIndex) & entry->presenceMask))
|
||||
return;
|
||||
}
|
||||
uiIndex = index + 1;
|
||||
} else {
|
||||
uiIndex = DMA_OPT_UI_INDEX(index);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue