Skip to content

Commit 3fdda81

Browse files
Make the LiquidCrystal row offsets uint8_t instead of int
Since these are memory addresses, there is no need to make them signed. Furthermore, the HD44780 chip supports memory addresses up to 0x67, so uint8_t shouldbe sufficient.
1 parent 03a6b2c commit 3fdda81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/LiquidCrystal/src/LiquidCrystal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class LiquidCrystal : public Print {
102102
uint8_t _initialized;
103103

104104
uint8_t _numlines,_currline;
105-
int _row_offsets[4];
105+
uint8_t _row_offsets[4];
106106
};
107107

108108
#endif

0 commit comments

Comments
 (0)