@@ -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缓存, 清除串口缓存