1
0
Fork 0
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:
kedeng 2025-07-04 15:51:13 +08:00
parent c6ba65dfd8
commit c9640b3387
4 changed files with 38 additions and 32 deletions

View file

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