summaryrefslogtreecommitdiff
path: root/libraries/MultiLCD
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2017-01-13 10:40:07 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2017-01-13 10:40:07 +1100
commit848e69776125c5816465ad1a80d5363c146da0e8 (patch)
tree7d78204a070636388191e9e758d800b73a0f761c /libraries/MultiLCD
parenta07593476806ce116e36c51b1350a8c2a5d8513c (diff)
download2021-arduino-obd-848e69776125c5816465ad1a80d5363c146da0e8.tar.gz
2021-arduino-obd-848e69776125c5816465ad1a80d5363c146da0e8.tar.bz2
2021-arduino-obd-848e69776125c5816465ad1a80d5363c146da0e8.zip
Fixed minor issue with Arduino 1.8.0
Diffstat (limited to 'libraries/MultiLCD')
-rw-r--r--libraries/MultiLCD/R61581.cpp6
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();