-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App cleanup and new tests #1
Conversation
9e4e504
to
1ad6574
Compare
1ad6574
to
a079564
Compare
src/ui/menu_nbgl.c
Outdated
@@ -146,13 +154,16 @@ void ui_menu_main(void) { | |||
switches[DUMMY_SWITCH_2_ID].tuneId = TUNE_TAP_CASUAL; | |||
#endif | |||
|
|||
homeAction.callback = (nbgl_callback_t) ui_display_review; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This callback type should be:
typedef void (*nbgl_callback_t)(void)
,
but the function ui_display_review
has an input parameter, which is not good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's true, but it's temporary; this button will launch a page to run flows in a standalone manner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not fan... Its error prone, even if in this exact situation, it will work.
Better to declare a function with correct prototype, and then call the targeted one without extra parameters...
src/ui/menu_nbgl.c
Outdated
@@ -146,13 +154,16 @@ void ui_menu_main(void) { | |||
switches[DUMMY_SWITCH_2_ID].tuneId = TUNE_TAP_CASUAL; | |||
#endif | |||
|
|||
homeAction.callback = (nbgl_callback_t) ui_display_review; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not fan... Its error prone, even if in this exact situation, it will work.
Better to declare a function with correct prototype, and then call the targeted one without extra parameters...
No description provided.