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:
parent
a156d915f4
commit
31a00d6b4d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue