Fix stax build for API_LEVEL < 14

This commit is contained in:
Francois Beutin
2023-12-01 16:35:14 +01:00
parent 1a3f58d1be
commit ec7e385d78
2 changed files with 8 additions and 0 deletions

View File

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

View File

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