Skip to content

Commit

Permalink
Clang Static Analyzer issues for Stax and Flex - replacing deprected …
Browse files Browse the repository at this point in the history
…nbgl_useCaseSettings() call
  • Loading branch information
iartemov-ledger committed Dec 23, 2024
1 parent 7118d5e commit 95d4b60
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/monero_ux_nbgl_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

#define PAGE_START 0
#define NB_PAGE_SETTING 3
#define IS_TOUCHABLE true

void __attribute__((noreturn)) app_exit(void);

Expand Down Expand Up @@ -201,12 +200,14 @@ static void settings_control_cb(int token, uint8_t index, int page) {
UNUSED(page);
switch (token) {
case ACCOUNT_TOKEN:
nbgl_useCaseSettings("Select account", 0, 3, IS_TOUCHABLE, display_settings_menu,
account_settings_navigation_cb, account_settings_control_cb);
nbgl_useCaseNavigableContent("Select account", 0, 3, display_settings_menu,
account_settings_navigation_cb,
account_settings_control_cb);
break;
case NETWORK_TOKEN:
nbgl_useCaseSettings("Select network", 0, 2, IS_TOUCHABLE, display_settings_menu,
network_settings_navigation_cb, network_settings_control_cb);
nbgl_useCaseNavigableContent("Select network", 0, 2, display_settings_menu,
network_settings_navigation_cb,
network_settings_control_cb);
break;
case RESET_TOKEN:
nbgl_useCaseConfirm("Reset account\ninformations ?", "", "Yes, Reset", "Go back",
Expand Down

0 comments on commit 95d4b60

Please sign in to comment.