mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2026-03-18 18:02:47 +01:00
thermal_printer bug fix,print_lines8 cfg null check logic bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
|
||||
if(lines > 0 && cfg == NULL ){
|
||||
if( cfg == NULL ){
|
||||
if(lines > 0) {
|
||||
ENABLE_VH;
|
||||
feed_pitch1(lines,backforward);
|
||||
feed_pitch1(lines,backforward);
|
||||
DISABLE_VH;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user