Skip to content

Commit

Permalink
Hotfix fix for API_LEVEL_14 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Dec 1, 2023
1 parent fe25c8d commit 8d0bbd6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src_features/signTx/logic_signTx.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ void finalizeParsing(bool direct) {
// Ensure the values are the same that the ones that have been previously validated
if (strcmp(strings.common.maxFee, displayBuffer) != 0) {
PRINTF("ERR_SILENT_MODE_CHECK_FAILED, fees check failed\n");
PRINTF("Expected %s\n", strings.common.maxFee);
PRINTF("Received %s\n", displayBuffer);
THROW(ERR_SILENT_MODE_CHECK_FAILED);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src_nbgl/ui_sign_712.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ 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
#if defined API_LEVEL && (API_LEVEL == 0 || API_LEVEL >= 14)
&len,
false);
#else
Expand Down
2 changes: 1 addition & 1 deletion src_nbgl/ui_sign_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ 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
#if defined API_LEVEL && (API_LEVEL == 0 || API_LEVEL >= 14)
&len,
false);
#else
Expand Down

0 comments on commit 8d0bbd6

Please sign in to comment.