added debug messages for serial

This commit is contained in:
PavelSindler 2017-07-03 14:08:27 +02:00
parent 17074e1d25
commit 4ae5751d95

View file

@ -1601,7 +1601,11 @@ void get_command()
}
cmdbuffer[bufindw+serial_count+1] = 0; //terminate string
cmdbuffer[bufindw] = CMDBUFFER_CURRENT_TYPE_SDCARD;
SERIAL_ECHOPGM("cmdbuffer:");
MYSERIAL.print(cmdbuffer);
++ buflen;
SERIAL_ECHOPGM("buflen:");
MYSERIAL.print(buflen);
bufindw += strlen(cmdbuffer+bufindw+1) + 2;
if (bufindw == sizeof(cmdbuffer))
bufindw = 0;