From 4218cd1e88626d93c050157de79f046029ff71f5 Mon Sep 17 00:00:00 2001 From: cuu Date: Sun, 13 Feb 2022 16:58:27 +0800 Subject: [PATCH] code fix --- Code/thermal_printer/devterm_thermal_printer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Code/thermal_printer/devterm_thermal_printer.c b/Code/thermal_printer/devterm_thermal_printer.c index 11bc0ff..6dd064d 100644 --- a/Code/thermal_printer/devterm_thermal_printer.c +++ b/Code/thermal_printer/devterm_thermal_printer.c @@ -712,7 +712,11 @@ void parse_serial_stream(CONFIG*cfg,uint8_t input_ch){ a = (ser_cache.idx+1)*current_font.width+(ser_cache.idx)*0+ g_config.margin.width; if( a >= MAX_DOTS)//got enough points to print { - print_lines8(cfg); + if(cfg->font->mode == FONT_MODE_1){ + print_lines_ft(cfg); + }else { + print_lines8(cfg); + } reset_cmd(); } break;