Skip to content

Commit

Permalink
Merge pull request #503 from LedgerHQ/fbe/fix_stax_build
Browse files Browse the repository at this point in the history
Fix stax build for API_LEVEL < 14
  • Loading branch information
fbeutin-ledger authored Dec 1, 2023
2 parents 1a3f58d + ec7e385 commit 6696fda
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 6696fda

Please sign in to comment.