niujiuru 1 hónapja
szülő
commit
6a704eb1bf
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      mcu_ctrl_board/mcu_ctrl_board.c

+ 1 - 1
mcu_ctrl_board/mcu_ctrl_board.c

@@ -144,7 +144,7 @@ json_p: //start JSON
    }
    else if(xisprint(ch))
    { // IDLE -> TEXT
-text_p: //parse TEXT
+text_p: //cache TEXT
      if(pTextCache->len < sizeof(pTextCache->buf)-1) pTextCache->buf[pTextCache->len++] = ch;
      else { pTextCache->overflow = true; sw_log_warn("[%s] TEXT cache overflow, discard byte: 0x%02X!!", MODULE_NAME, ch); }
      serial_clear_recv_buffer(pSerial); // 已转存到TEXT缓存, 清除串口缓存