This commit is contained in:
cuu 2021-05-14 09:24:09 +08:00
parent 08f1f1fa4d
commit 9179e0abc2

View File

@ -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);
} }