tab to be two space in PRINT_STATE

This commit is contained in:
cuu 2021-05-16 13:51:52 +08:00
parent 72eeb89451
commit bcc984109a

View File

@ -682,7 +682,7 @@ void loop() {
{
fread(readbuf,1, 1,fp);
//printf("read %x",readbuf[0]);
if(cfg->state == PRINT_STATE) {
if(g_config.state == PRINT_STATE) {
if(readbuf[0] == ASCII_TAB) {
readbuf[0] = ' ';
parse_serial_stream(&g_config,readbuf[0]);