Skip to content

Commit

Permalink
Fix stax build for API_LEVEL < 14
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Dec 1, 2023
1 parent 1a3f58d commit ec7e385
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src_nbgl/ui_sign_712.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src_nbgl/ui_sign_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ec7e385

Please sign in to comment.