From c2a7dc68902b1d27e1caf4c781a4af3e3ceb4c48 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Thu, 30 Oct 2014 23:51:38 +1100 Subject: Fix a bug --- libraries/MultiLCD/SSD1289.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libraries') 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; -- cgit v1.2.3