diff --git a/src/SerLCD.cpp b/src/SerLCD.cpp index a84301c..83c901c 100644 --- a/src/SerLCD.cpp +++ b/src/SerLCD.cpp @@ -343,8 +343,6 @@ void SerLCD::setCursor(byte col, byte row) int row_offsets[] = {0x00, 0x40, 0x14, 0x54}; //kepp variables in bounds - //Explicitly cast numeric literals to type byte to avoid ESP32 and ESP8266 compile errors - row = max((byte) 0, row); //row cannot be less than 0 row = min(row, (byte)(MAX_ROWS - 1)); //row cannot be greater than max rows //send the command @@ -775,4 +773,4 @@ void SerLCD::setAddress(byte new_addr) byte SerLCD::getAddress() { return _i2cAddr; -} //getAddress \ No newline at end of file +} //getAddress