mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Copy-paste error on line 2829 in cli.c
Found through static analysis (GrammaTech CodeSonar). I am quite convinced that the VTX_TABLE_MAX_BANDS on line 2829 should be VTX_TABLE_MAX_CHANNELS. Possible the same replacement should be done on Line 2834, but I am not 100%.
This commit is contained in:
parent
5dd8fee755
commit
8c47e3334b
1 changed files with 1 additions and 1 deletions
|
@ -2826,7 +2826,7 @@ static void cliVtxTable(char *cmdline)
|
|||
tok = strtok_r(NULL, " ", &saveptr);
|
||||
|
||||
int channels = atoi(tok);
|
||||
if (channels < 0 || channels > VTX_TABLE_MAX_BANDS) {
|
||||
if (channels < 0 || channels > VTX_TABLE_MAX_CHANNELS) {
|
||||
cliPrintErrorLinef("INVALID CHANNEL COUNT (SHOULD BE BETWEEN 0 AND %d)", VTX_TABLE_MAX_CHANNELS);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue