diff --git a/src/lcd.cpp b/src/lcd.cpp index 926b74789..4b0bfa1b7 100644 --- a/src/lcd.cpp +++ b/src/lcd.cpp @@ -393,7 +393,7 @@ void lcd_vlineStip(uint8_t x, int8_t y, int8_t h, uint8_t pat) p += DISPLAY_W; h -= 8; } - h = (h+8) % 8; // TODO optim + if (h < 0) h += 8; if (h) { p -= DISPLAY_W; assert(p >= displayBuf && p < DISPLAY_END);