thermal_printer bug, feed_pitch1 should not use [FOR/BACK]WORD directly

This commit is contained in:
cuu 2021-04-24 15:30:21 +08:00
parent 065841830e
commit e9282f45c6
2 changed files with 3 additions and 3 deletions

View File

@ -422,7 +422,7 @@ void parse_cmd(CONFIG*cfg,uint8_t *cmd, uint8_t cmdidx){
if(cmd[0] == ASCII_ESC && cmd[1] == 0x4a){
print_lines8(cfg);
feed_pitch1(cmd[2],BACKWARD);
feed_pitch1(cmd[2],cfg->orient);
reset_cmd();
}
//ESC d n
@ -430,7 +430,7 @@ void parse_cmd(CONFIG*cfg,uint8_t *cmd, uint8_t cmdidx){
print_lines8(cfg);
feed_pitch1(cmd[2]*cfg->font->height,BACKWARD);
feed_pitch1(cmd[2]*cfg->font->height,cfg->orient);
reset_cmd();
}
//ESC ! n

View File

@ -539,7 +539,7 @@ void print_image8(CONFIG*cfg){
if(IsPaper()== IS_PAPER) print_dots_8bit_split(cfg,LinePixels,x);
//feed_pitch1(FEED_PITCH,BACKWARD);
//feed_pitch1(FEED_PITCH,cfg->orient);
y++;
}
//feed_pitch1(cfg->feed_pitch,cfg->orient);