mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2026-01-08 07:18:59 +01:00
bug fix
This commit is contained in:
parent
08f1f1fa4d
commit
9179e0abc2
@ -65,14 +65,14 @@ uint8_t IsPaper()
|
|||||||
}else {
|
}else {
|
||||||
status = printer_vps_last_status;
|
status = printer_vps_last_status;
|
||||||
}
|
}
|
||||||
printer_vps_last_status = status;
|
|
||||||
|
|
||||||
tmp = temperature();
|
tmp = temperature();
|
||||||
if (tmp >= HOT){
|
if (tmp >= HOT){
|
||||||
PRINTF("Printer too Hot\n");
|
PRINTF("Printer too Hot\n");
|
||||||
status |= HOT_PRINTER;
|
status |= HOT_PRINTER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printer_vps_last_status = status;
|
||||||
printer_vps_time = millis();
|
printer_vps_time = millis();
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
@ -397,7 +397,7 @@ uint8_t print_lines8(CONFIG*cfg) {
|
|||||||
pad = i+pad;
|
pad = i+pad;
|
||||||
|
|
||||||
row = 0;
|
row = 0;
|
||||||
rv = 0;
|
rv = IsPaper();
|
||||||
|
|
||||||
data = (uint8_t*)malloc(sizeof(uint8_t)*(pad+1));
|
data = (uint8_t*)malloc(sizeof(uint8_t)*(pad+1));
|
||||||
i=0;
|
i=0;
|
||||||
@ -526,7 +526,7 @@ uint8_t print_image8(CONFIG*cfg){
|
|||||||
y=0;
|
y=0;
|
||||||
addr = 0;
|
addr = 0;
|
||||||
|
|
||||||
rv = 0;
|
rv = IsPaper();
|
||||||
while(y < height )
|
while(y < height )
|
||||||
{
|
{
|
||||||
x=0;
|
x=0;
|
||||||
@ -542,7 +542,7 @@ uint8_t print_image8(CONFIG*cfg){
|
|||||||
|
|
||||||
x++;
|
x++;
|
||||||
}
|
}
|
||||||
rv = IsPaper();
|
rv = IsPaper();
|
||||||
if( rv == IS_PAPER) {
|
if( rv == IS_PAPER) {
|
||||||
print_dots_8bit_split(cfg,LinePixels,x);
|
print_dots_8bit_split(cfg,LinePixels,x);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user