1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Improve magic number use.

This commit is contained in:
Dominic Clifton 2015-01-22 22:57:34 +01:00
parent ae752217c6
commit 8bdca1b38e

View file

@ -1451,7 +1451,7 @@ static bool processInCommand(void)
case MSP_SET_LED_STRIP_CONFIG:
{
i = read8();
if (i >= MAX_LED_STRIP_LENGTH || currentPort->dataSize != 8) {
if (i >= MAX_LED_STRIP_LENGTH || currentPort->dataSize != (1 + 7)) {
headSerialError(0);
break;
}