Skip to content

Commit 4f51215

Browse files
author
dingo35
committed
main.cpp: add code to debug CH32 ReadESPdata output
1 parent 84798e5 commit 4f51215

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

SmartEVSE-3/src/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,6 +2249,11 @@ void CheckSerialComm(void) {
22492249
char *ret;
22502250

22512251
len = ReadESPdata(SerialBuf);
2252+
/* char prnt[256];
2253+
memcpy(prnt, SerialBuf, len);
2254+
for (char *p = prnt; *p; p++) if (*p == '\n') *p = ';'; //replace \n by ;
2255+
prnt[len]='\0'; //terminate NULL
2256+
printf("@MSG: DINGO 100ms RCmon test, buf[%u]=%s.\n", len, prnt);*/
22522257
RxRdy1 = 0;
22532258
#ifndef WCH_VERSION
22542259
#define WCH_VERSION 0 //if WCH_VERSION not defined compile time, 0 means this firmware will be overwritten by any other version; it will be re-flashed every boot

0 commit comments

Comments
 (0)