From b95d508574a1fb182cc801bf3e161bd1be48aea8 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Fri, 30 Sep 2022 12:50:47 +0200 Subject: [PATCH] cleanup: Remove implicit fallthrough in CRC validation --- Firmware/mmu2_protocol.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Firmware/mmu2_protocol.cpp b/Firmware/mmu2_protocol.cpp index 16fe69f4a..c79443238 100644 --- a/Firmware/mmu2_protocol.cpp +++ b/Firmware/mmu2_protocol.cpp @@ -112,6 +112,10 @@ DecodeStatus Protocol::DecodeRequest(uint8_t c) { rqState = RequestStates::Code; return DecodeStatus::MessageCompleted; } + } else { + requestMsg.code = RequestMsgCodes::unknown; + rqState = RequestStates::Error; + return DecodeStatus::Error; } default: //case error: if (IsNewLine(c)) {