mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-13 10:48:49 +01:00
thermal_printer bug fix,print_lines8 cfg null check logic bug
This commit is contained in:
parent
1649eb7202
commit
d27d6b31aa
@ -627,10 +627,13 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user