diff --git a/core/embed/extmod/modtrezorui/display-stm32_1.h b/core/embed/extmod/modtrezorui/display-stm32_1.h index 2207fe5bd..3fe1fe1b5 100644 --- a/core/embed/extmod/modtrezorui/display-stm32_1.h +++ b/core/embed/extmod/modtrezorui/display-stm32_1.h @@ -242,3 +242,5 @@ void display_refresh(void) { } const char *display_save(const char *prefix) { return NULL; } + +void display_clear_save(void) {} diff --git a/core/embed/extmod/modtrezorui/display.c b/core/embed/extmod/modtrezorui/display.c index 825eb9b3a..3c0223631 100644 --- a/core/embed/extmod/modtrezorui/display.c +++ b/core/embed/extmod/modtrezorui/display.c @@ -696,9 +696,9 @@ int display_text_width(const char *text, int textlen, int font) { // the requested width. Tries to avoid breaking words if possible. int display_text_split(const char *text, int textlen, int font, int requested_width) { +#if TREZOR_MODEL == T int width = 0; int lastspace = 0; -#if TREZOR_MODEL == T // determine text length if not provided if (textlen < 0) { textlen = strlen(text);