mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
REFACTOR: Adding DMA_FIRST_HANDLER (#14474)
* REFACTOR: Adding DMA_FIRST_HANDLER dmaIdentifier_e could be zero based in the future and align to descriptor array index directly Also removed unused DMA_INPUT_STRING * Removed magic number following code rabbit review
This commit is contained in:
parent
35dd55f6d7
commit
0d0c00f341
6 changed files with 13 additions and 11 deletions
|
@ -5323,7 +5323,7 @@ static void showDma(void)
|
|||
cliPrintLine("Currently active DMA:");
|
||||
cliRepeat('-', 20);
|
||||
#endif
|
||||
for (int i = 1; i <= DMA_LAST_HANDLER; i++) {
|
||||
for (int i = DMA_FIRST_HANDLER; i <= DMA_LAST_HANDLER; i++) {
|
||||
const resourceOwner_t *owner = dmaGetOwner(i);
|
||||
|
||||
cliPrintf(DMA_OUTPUT_STRING, DMA_DEVICE_NO(i), DMA_DEVICE_INDEX(i));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue