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:
parent
9b4d123db3
commit
6ab37fd800
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue