diff --git a/left/src/slave_protocol_handler.c b/left/src/slave_protocol_handler.c index b3afc24..fabb74a 100644 --- a/left/src/slave_protocol_handler.c +++ b/left/src/slave_protocol_handler.c @@ -35,6 +35,11 @@ void SetResponseByte(uint8_t response) void SlaveRxHandler(void) { + if (!CRC16_IsMessageValid(&RxMessage)) { + TxMessage.length = 0; + return; + } + uint8_t commandId = RxMessage.data[0]; switch (commandId) { case SlaveCommand_SetTestLed: