Explorar el Código

mmu: Silence repeated S0 requests

Update "S0" CRC on replies so that the message is properly silenced.
Yuri D'Elia hace 2 años
padre
commit
b3b9778341
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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.