diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2017-01-13 10:40:07 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2017-01-13 10:40:07 +1100 |
commit | 848e69776125c5816465ad1a80d5363c146da0e8 (patch) | |
tree | 7d78204a070636388191e9e758d800b73a0f761c | |
parent | a07593476806ce116e36c51b1350a8c2a5d8513c (diff) | |
download | 2021-arduino-obd-848e69776125c5816465ad1a80d5363c146da0e8.tar.gz 2021-arduino-obd-848e69776125c5816465ad1a80d5363c146da0e8.tar.bz2 2021-arduino-obd-848e69776125c5816465ad1a80d5363c146da0e8.zip |
Fixed minor issue with Arduino 1.8.0
-rw-r--r-- | libraries/MultiLCD/R61581.cpp | 6 |
1 files 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(); |