mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
Fix "may be uninitialized" debug build warnings
This commit is contained in:
parent
f3036221ea
commit
b471577a14
3 changed files with 10 additions and 10 deletions
|
@ -5737,7 +5737,7 @@ static void cliTimer(char *cmdline)
|
|||
|
||||
pch = strtok_r(NULL, " ", &saveptr);
|
||||
if (pch) {
|
||||
int timerIndex;
|
||||
int timerIndex = TIMER_INDEX_UNDEFINED;
|
||||
if (strcasecmp(pch, "list") == 0) {
|
||||
/* output the list of available options */
|
||||
const timerHardware_t *timer;
|
||||
|
@ -5751,8 +5751,6 @@ static void cliTimer(char *cmdline)
|
|||
}
|
||||
|
||||
return;
|
||||
} else if (strcasecmp(pch, "none") == 0) {
|
||||
timerIndex = TIMER_INDEX_UNDEFINED;
|
||||
} else if (strncasecmp(pch, "af", 2) == 0) {
|
||||
unsigned alternateFunction = atoi(&pch[2]);
|
||||
|
||||
|
@ -5770,7 +5768,7 @@ static void cliTimer(char *cmdline)
|
|||
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
} else if (strcasecmp(pch, "none") != 0) {
|
||||
timerIndex = atoi(pch);
|
||||
|
||||
const timerHardware_t *timer = timerGetByTagAndIndex(ioTag, timerIndex + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue