summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2017-02-13 23:29:35 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2017-02-13 23:29:35 +1100
commit253dc7485e68d47c14d1a034b3c52169767f6020 (patch)
treea0a1d22e6c13bf200e3c42ceb32b30bb4e2c0176
parenta8f61f1a5e34c0fbf52d897a0cbaecbe75577662 (diff)
download2021-arduino-obd-253dc7485e68d47c14d1a034b3c52169767f6020.tar.gz
2021-arduino-obd-253dc7485e68d47c14d1a034b3c52169767f6020.tar.bz2
2021-arduino-obd-253dc7485e68d47c14d1a034b3c52169767f6020.zip
Fixed typo
-rw-r--r--libraries/MultiLCD/ILI9341.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libraries/MultiLCD/ILI9341.cpp b/libraries/MultiLCD/ILI9341.cpp
index 9cb5c27..4f8b64c 100644
--- a/libraries/MultiLCD/ILI9341.cpp
+++ b/libraries/MultiLCD/ILI9341.cpp
@@ -383,10 +383,10 @@ size_t LCD_ILI9341::write(uint8_t c)
{
if (c == '\n') {
m_y += (m_font + 1) << 3;
- return 0;
+ return 1;
} else if (c == '\r') {
m_x = 0;
- return 0;
+ return 1;
}
#ifndef MEMORY_SAVING
@@ -435,6 +435,7 @@ size_t LCD_ILI9341::write(uint8_t c)
}
}
#endif
+ return 1;
}
void LCD_ILI9341::writeDigit(byte n)