From 848e69776125c5816465ad1a80d5363c146da0e8 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 13 Jan 2017 10:40:07 +1100 Subject: Fixed minor issue with Arduino 1.8.0 --- libraries/MultiLCD/R61581.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/MultiLCD/R61581.cpp b/libraries/MultiLCD/R61581.cpp index c907df6..4e8a6dd 100644 --- a/libraries/MultiLCD/R61581.cpp +++ b/libraries/MultiLCD/R61581.cpp @@ -251,11 +251,9 @@ void LCD_R61581::clear(uint16_t x, uint16_t y, uint16_t width, uint16_t height) size_t LCD_R61581::write(uint8_t c) { if (c == '\n') { - m_y += (m_font + 1) << 3; - return 0; - } else if (c == '\r') { m_x = 0; - return 0; + m_y += m_font == 0 ? 8 : 16; + return 1; } if (m_x > disp_y_size) return 0; Enable(); -- cgit v1.2.3