niujiuru пре 1 месец
родитељ
комит
23bf2277b8
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      mcu_ctrl_board/mcu_ctrl_board.c
  2. 1 1
      mcu_ctrl_board/proc_text.go

+ 1 - 1
mcu_ctrl_board/mcu_ctrl_board.c

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

+ 1 - 1
mcu_ctrl_board/proc_text.go

@@ -36,7 +36,7 @@ func processText(textStr string) *C.char {
 	text := strings.TrimSpace(textStr)
 
 	if !playTextAudio(text) {
-		baseapp.Logger.Warnf("未知的TEXT报文: %s", text)
+		baseapp.Logger.Warnf("未知的TEXT报文: %s!", text)
 	}
 
 	return nil