1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

Fix incorrect TIMUP DMA configuration dump on H743

This commit is contained in:
kedeng 2025-07-03 12:29:08 +08:00
parent 9b4d123db3
commit 6ab37fd800

View file

@ -5425,7 +5425,18 @@ static void printPeripheralDmaoptDetails(dmaoptEntry_t *entry, int index, const
int uiIndex;
if (entry->presenceMask) {
#if defined(STM32H7) || defined(STM32G4)
if (entry->peripheral == DMA_PERIPH_TIMUP) {
if (!(BIT(index + 1) & entry->presenceMask)) {
return;
}
uiIndex = index + 1;
} else {
uiIndex = timerGetNumberByIndex(index);
}
#else
uiIndex = timerGetNumberByIndex(index);
#endif
} else {
uiIndex = DMA_OPT_UI_INDEX(index);
}