mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
Improve magic number use.
This commit is contained in:
parent
ae752217c6
commit
8bdca1b38e
1 changed files with 1 additions and 1 deletions
|
@ -1451,7 +1451,7 @@ static bool processInCommand(void)
|
||||||
case MSP_SET_LED_STRIP_CONFIG:
|
case MSP_SET_LED_STRIP_CONFIG:
|
||||||
{
|
{
|
||||||
i = read8();
|
i = read8();
|
||||||
if (i >= MAX_LED_STRIP_LENGTH || currentPort->dataSize != 8) {
|
if (i >= MAX_LED_STRIP_LENGTH || currentPort->dataSize != (1 + 7)) {
|
||||||
headSerialError(0);
|
headSerialError(0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue