1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

core/extmod: fix build of modtrezorui when TREZOR_MODEL is set to '1'

This commit is contained in:
Pavol Rusnak 2020-04-30 15:06:31 +00:00
parent d7d5579eae
commit 25cc836660
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 3 additions and 1 deletions

View File

@ -242,3 +242,5 @@ void display_refresh(void) {
}
const char *display_save(const char *prefix) { return NULL; }
void display_clear_save(void) {}

View File

@ -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);