diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-10-30 23:51:38 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-10-30 23:51:38 +1100 |
commit | c2a7dc68902b1d27e1caf4c781a4af3e3ceb4c48 (patch) | |
tree | 9a7b92fb0a96149e45be750a6d1f2e5a8f05463b /libraries | |
parent | d646498e8bfe66c2785445bf0626949170ae2f79 (diff) | |
download | 2021-arduino-obd-c2a7dc68902b1d27e1caf4c781a4af3e3ceb4c48.tar.gz 2021-arduino-obd-c2a7dc68902b1d27e1caf4c781a4af3e3ceb4c48.tar.bz2 2021-arduino-obd-c2a7dc68902b1d27e1caf4c781a4af3e3ceb4c48.zip |
Fix a bug
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/MultiLCD/SSD1289.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/MultiLCD/SSD1289.cpp b/libraries/MultiLCD/SSD1289.cpp index d5c2675..5c5a073 100644 --- a/libraries/MultiLCD/SSD1289.cpp +++ b/libraries/MultiLCD/SSD1289.cpp @@ -180,10 +180,10 @@ void LCD_SSD1289::clear() size_t LCD_SSD1289::write(uint8_t c) { if (c == '\n') { - m_x += (m_font + 1) << 3; + m_y += (m_font + 1) << 3; return 0; } else if (c == '\r') { - m_y = 0; + m_x = 0; return 0; } if (m_x >= 320) return 0; |