From 3fdda81a1ad2b10b924866645d7b7eee2398a122 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 18 Dec 2013 12:37:01 +0100 Subject: [PATCH] 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. --- libraries/LiquidCrystal/src/LiquidCrystal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/LiquidCrystal/src/LiquidCrystal.h b/libraries/LiquidCrystal/src/LiquidCrystal.h index 1c0fa4fb0..684a65f11 100644 --- a/libraries/LiquidCrystal/src/LiquidCrystal.h +++ b/libraries/LiquidCrystal/src/LiquidCrystal.h @@ -102,7 +102,7 @@ private: uint8_t _initialized; uint8_t _numlines,_currline; - int _row_offsets[4]; + uint8_t _row_offsets[4]; }; #endif