use space for non-printable chars such as enter, tab, etc.

This commit is contained in:
Pavol Rusnak 2014-12-08 19:32:18 +01:00
parent d07f6026e9
commit 983d1ff4b5
1 changed files with 5 additions and 1 deletions

6
oled.c
View File

@ -193,7 +193,11 @@ void oledDrawChar(int x, int y, char c)
if ((x >= OLED_WIDTH) || (y >= OLED_HEIGHT)) return;
if ((c < FONT_START) || (c > FONT_END)) {
if (c < FONT_START) {
c = ' ';
}
if (c > FONT_END) {
c = '_';
}