From b3b9778341a2e691c02778dbebf8613d579afa60 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Thu, 8 Dec 2022 17:59:26 +0100 Subject: [PATCH] mmu: Silence repeated S0 requests Update "S0" CRC on replies so that the message is properly silenced. --- Firmware/mmu2_protocol_logic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/mmu2_protocol_logic.cpp b/Firmware/mmu2_protocol_logic.cpp index 2b05f045f..160ca1d6a 100644 --- a/Firmware/mmu2_protocol_logic.cpp +++ b/Firmware/mmu2_protocol_logic.cpp @@ -705,7 +705,7 @@ void ProtocolLogic::LogRequestMsg(const uint8_t *txbuff, uint8_t size) { tmp[i + 1] = b; } tmp[size + 1] = 0; - if (!strncmp_P(tmp, PSTR(">S0*99."), rqs) && !strncmp(lastMsg, tmp, rqs)) { + if (!strncmp_P(tmp, PSTR(">S0*c6."), rqs) && !strncmp(lastMsg, tmp, rqs)) { // @@TODO we skip the repeated request msgs for now // to avoid spoiling the whole log just with ">S0" messages // especially when the MMU is not connected.