Skip to content

Commit 25cc836

Browse files
committed
core/extmod: fix build of modtrezorui when TREZOR_MODEL is set to '1'
1 parent d7d5579 commit 25cc836

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/embed/extmod/modtrezorui/display-stm32_1.h

+2
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,5 @@ void display_refresh(void) {
242242
}
243243

244244
const char *display_save(const char *prefix) { return NULL; }
245+
246+
void display_clear_save(void) {}

core/embed/extmod/modtrezorui/display.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -696,9 +696,9 @@ int display_text_width(const char *text, int textlen, int font) {
696696
// the requested width. Tries to avoid breaking words if possible.
697697
int display_text_split(const char *text, int textlen, int font,
698698
int requested_width) {
699+
#if TREZOR_MODEL == T
699700
int width = 0;
700701
int lastspace = 0;
701-
#if TREZOR_MODEL == T
702702
// determine text length if not provided
703703
if (textlen < 0) {
704704
textlen = strlen(text);

0 commit comments

Comments
 (0)