Improve magic number use.

This commit is contained in:
Dominic Clifton 2015-01-22 22:57:34 +01:00
parent ae752217c6
commit 8bdca1b38e
1 changed files with 1 additions and 1 deletions

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;
}