Skip to content

Commit 8c6bcf0

Browse files
In LiquidCrystal::begin(), use a define instead of a hardcoded 0
1 parent 265ac7b commit 8c6bcf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/LiquidCrystal/src/LiquidCrystal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void LiquidCrystal::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) {
9292
setRowOffsets(0x00, 0x40, 0x00 + cols, 0x40 + cols);
9393

9494
// for some 1 line displays you can select a 10 pixel high font
95-
if ((dotsize != 0) && (lines == 1)) {
95+
if ((dotsize != LCD_5x8DOTS) && (lines == 1)) {
9696
_displayfunction |= LCD_5x10DOTS;
9797
}
9898

0 commit comments

Comments
 (0)