From ec7e385d78308bd089eff5f7db2e1410e606b6e1 Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Fri, 1 Dec 2023 16:35:14 +0100 Subject: [PATCH] Fix stax build for API_LEVEL < 14 --- src_nbgl/ui_sign_712.c | 4 ++++ src_nbgl/ui_sign_message.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src_nbgl/ui_sign_712.c b/src_nbgl/ui_sign_712.c index f53add1ec..e1163f70c 100644 --- a/src_nbgl/ui_sign_712.c +++ b/src_nbgl/ui_sign_712.c @@ -30,8 +30,12 @@ static bool display_review_page(uint8_t page, nbgl_pageContent_t *content) { strings.tmp.tmp, SCREEN_WIDTH - (2 * BORDER_MARGIN), NB_MAX_LINES_IN_REVIEW, +#if API_LEVEL >= 14 &len, false); +#else + &len); +#endif strings.tmp.tmp[len] = '\0'; pair.item = strings.tmp.tmp2; diff --git a/src_nbgl/ui_sign_message.c b/src_nbgl/ui_sign_message.c index a44687269..d2f1f1c7d 100644 --- a/src_nbgl/ui_sign_message.c +++ b/src_nbgl/ui_sign_message.c @@ -47,8 +47,12 @@ static bool display_message(nbgl_pageContent_t *content) { (char *) g_stax_shared_buffer, SCREEN_WIDTH - (2 * BORDER_MARGIN), NB_MAX_LINES_IN_REVIEW, +#if API_LEVEL >= 14 &len, false); +#else + &len); +#endif stringsTmpTmpIdx = len - eip191MessageIdx; eip191MessageIdx = len;