Browse Source

tab to be two space in PRINT_STATE

cuu 3 years ago
parent
commit
bcc984109a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Code/thermal_printer/devterm_thermal_printer.c

+ 1 - 1
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]);