mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-05 05:15:27 +00:00
use space for non-printable chars such as enter, tab, etc.
This commit is contained in:
parent
d07f6026e9
commit
983d1ff4b5
6
oled.c
6
oled.c
@ -193,7 +193,11 @@ void oledDrawChar(int x, int y, char c)
|
|||||||
|
|
||||||
if ((x >= OLED_WIDTH) || (y >= OLED_HEIGHT)) return;
|
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 = '_';
|
c = '_';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user