Skip to content

Commit 738ad1c

Browse files
committed
Clear also last spot
1 parent c3f0cb3 commit 738ad1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/DBTFT/src/DBTFT.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ void loop() {
800800
}
801801
tft.setTextColor(COLOR_RED);
802802
// clear empty spots (not enough departures) only if the request succeeded.
803-
while (pos + activeDesign->itemHeight * 2 - 2 <= tft.height() && db.getError() == DBERR_NONE) {
803+
while (pos + activeDesign->itemHeight - 2 <= tft.height() && db.getError() == DBERR_NONE) {
804804
tft.fillRect(0, pos - 1, tft.width(), 18, activeDesign->backgroundColor);
805805
pos += activeDesign->itemHeight;
806806
}

0 commit comments

Comments
 (0)