From bcc984109afe87ded727f71c3695563e33535d0a Mon Sep 17 00:00:00 2001 From: cuu Date: Sun, 16 May 2021 13:51:52 +0800 Subject: [PATCH] tab to be two space in PRINT_STATE --- Code/thermal_printer/devterm_thermal_printer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/thermal_printer/devterm_thermal_printer.c b/Code/thermal_printer/devterm_thermal_printer.c index baa814d..ec4cee0 100644 --- a/Code/thermal_printer/devterm_thermal_printer.c +++ b/Code/thermal_printer/devterm_thermal_printer.c @@ -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]);