浏览代码

mmu: Silence repeated S0 requests

Update "S0" CRC on replies so that the message is properly silenced.
Yuri D'Elia 2 年之前
父节点
当前提交
b3b9778341
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.