mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
Fixed feedback when changing timer from 'NONE' in CLI.
This commit is contained in:
parent
de1c1d5377
commit
c1ac8c4eb4
1 changed files with 1 additions and 1 deletions
|
@ -5295,7 +5295,7 @@ static void cliTimer(char *cmdline)
|
|||
}
|
||||
}
|
||||
|
||||
uint8_t oldTimerIndex = isExistingTimerOpt ? timerIOConfig(timerIOIndex)->index - 1 : 0;
|
||||
int oldTimerIndex = isExistingTimerOpt ? timerIOConfig(timerIOIndex)->index - 1 : -1;
|
||||
timerIOConfigMutable(timerIOIndex)->ioTag = timerIndex == TIMER_INDEX_UNDEFINED ? IO_TAG_NONE : ioTag;
|
||||
timerIOConfigMutable(timerIOIndex)->index = timerIndex + 1;
|
||||
timerIOConfigMutable(timerIOIndex)->dmaopt = DMA_OPT_UNUSED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue