mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Fixing bug in LiquidCrystal::setCursor() for row == numrows.
http://code.google.com/p/arduino/issues/detail?id=671
This commit is contained in:
@ -173,7 +173,7 @@ void LiquidCrystal::home()
|
||||
void LiquidCrystal::setCursor(uint8_t col, uint8_t row)
|
||||
{
|
||||
int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
|
||||
if ( row > _numlines ) {
|
||||
if ( row >= _numlines ) {
|
||||
row = _numlines-1; // we count rows starting w/0
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user