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