-
Notifications
You must be signed in to change notification settings - Fork 12
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
Ledger assert #473
Ledger assert #473
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #473 +/- ##
=======================================
Coverage 59.44% 59.44%
=======================================
Files 12 12
Lines 1684 1684
=======================================
Hits 1001 1001
Misses 683 683
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
8986bc3
to
45ddf9c
Compare
ae6e659
to
e466fa4
Compare
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'm wondering if we should put this out of standard_app? So that it is used more simply on app not using standard_app?
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.
Should allow a potential app callback before displaying the message / exiting the app? something to send back an APDU response in case there was an APDU waiting for a response?
I'd say this could be transparent in standard_app, with a callback in io.c that would respond a standard ASSERT error code + infos?
Or maybe let's keep that for another time. Software wallet probably doesn't need a gentle response when thing goes as bad as an assert is triggered.
a54437c
to
ec8ffa9
Compare
73569fd
to
b9ea9f5
Compare
b334455
to
58078bb
Compare
src/ledger_assert.c
Outdated
#include <string.h> | ||
|
||
#include "ledger_assert.h" | ||
#include "exceptions.h" |
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.
Is it necessary?
9448536
to
9adfe8e
Compare
9adfe8e
to
9ae87d9
Compare
Description
Add
legder-assert
and related defines to enable feature and display of error code on device screen.Changes include
Breaking changes
Replace
HAVE_DEBUG_THROWS
withHAVE_LEDGER_ASSERT_DISPLAY