Add support for devices with less than 3 lines on the LCD.