1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

Fix size check for MSP_SET_CF_SERIAL_CONFIG.

This commit is contained in:
Dominic Clifton 2015-03-03 22:17:43 +00:00
parent a156d915f4
commit 31a00d6b4d

View file

@ -1534,7 +1534,7 @@ static bool processInCommand(void)
{
uint8_t portConfigSize = sizeof(uint8_t) + sizeof(uint16_t) + (sizeof(uint8_t) * 4);
if ((SERIAL_PORT_COUNT * portConfigSize) != SERIAL_PORT_COUNT) {
if ((SERIAL_PORT_COUNT * portConfigSize) != currentPort->dataSize) {
headSerialError(0);
break;
}