Browse Source

mmu: Silence repeated S0 requests

Update "S0" CRC on replies so that the message is properly silenced.
Yuri D'Elia 2 years ago
parent
commit
b3b9778341
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/mmu2_protocol_logic.cpp

+ 1 - 1
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.