This commit is contained in:
OBattler
2024-05-24 00:10:21 +02:00
2 changed files with 1 additions and 164 deletions

View File

@@ -1475,7 +1475,7 @@ process_char(escp_t *dev, uint8_t ch)
}
dev->curr_x = dev->left_margin;
dev->curr_y += dev->linespacing;
if (dev->curr_y > dev->bottom_margin)
if ((dev->curr_y + 0.0001f) > dev->bottom_margin)
new_page(dev, 1, 0);
return 1;