thermal_printer bug fix,print_lines8 cfg null check logic bug

This commit is contained in:
cuu 2022-06-22 14:49:05 +00:00
parent 1649eb7202
commit d27d6b31aa

View File

@ -625,12 +625,15 @@ uint8_t print_lines_ft(CONFIG *cfg,int lines,int bf) {
} }
uint8_t print_lines8(CONFIG *cfg,int lines,int backforward) { uint8_t print_lines8(CONFIG *cfg,int lines,int backforward) {
if(lines > 0 && cfg == NULL ){ if( cfg == NULL ){
if(lines > 0) {
ENABLE_VH; ENABLE_VH;
feed_pitch1(lines,backforward); feed_pitch1(lines,backforward);
DISABLE_VH; DISABLE_VH;
}
return 0; return 0;
} }