Conversation
this version does not work, it is here just as zxlib changes reference.
| static const char* review_addrvalue = REVIEW_SCREEN_ADDR_VALUE; | ||
| static const char* review_keyconfig = "Review"; | ||
| static const char* review_configvalue = "configuration"; | ||
| static const char *review_key = REVIEW_SCREEN_TITLE; |
Check notice
Code scanning / CodeQL
Unused static variable Note
| static const char* review_keyconfig = "Review"; | ||
| static const char* review_configvalue = "configuration"; | ||
| static const char *review_key = REVIEW_SCREEN_TITLE; | ||
| static const char *review_txvalue = REVIEW_SCREEN_TXN_VALUE; |
Check notice
Code scanning / CodeQL
Unused static variable Note
| static const char* review_configvalue = "configuration"; | ||
| static const char *review_key = REVIEW_SCREEN_TITLE; | ||
| static const char *review_txvalue = REVIEW_SCREEN_TXN_VALUE; | ||
| static const char *review_addrvalue = REVIEW_SCREEN_ADDR_VALUE; |
Check notice
Code scanning / CodeQL
Unused static variable Note
| #define INTRO_PAGES 0 | ||
| #endif | ||
|
|
||
| // FIXME: Wait to be fixed on SDK: |
Check notice
Code scanning / CodeQL
FIXME comment Note
| // passed page count, go to next index | ||
| if (viewdata.itemCount > 0 && viewdata.itemIdx < (viewdata.itemCount - 1 + INCLUDE_ACTIONS_COUNT)) { | ||
| uint8_t extraScreens = INCLUDE_ACTIONS_COUNT; | ||
| if (review_type == REVIEW_MSG && extraScreens > 0) { |
Check warning
Code scanning / CodeQL
Comparison result is always the same Warning
| // passed page count, go to next index | ||
| if (viewdata.itemCount > 0 && viewdata.itemIdx < (viewdata.itemCount - 1 + INCLUDE_ACTIONS_COUNT)) { | ||
| uint8_t extraScreens = INCLUDE_ACTIONS_COUNT; | ||
| if (review_type == REVIEW_MSG && extraScreens > 0) { |
Check warning
Code scanning / CodeQL
Comparison result is always the same Warning
|
|
||
| static void h_view_address() { | ||
| handleMenuShowAddress(); | ||
| // view_review_show_impl(); |
Check notice
Code scanning / CodeQL
Commented-out code Note
f33465a to
28e1712
Compare
Update documentation.
deps/README.md
Outdated
There was a problem hiding this comment.
Typo:
Menu feature requires us to... instead
And below:
Menu contains
Fixes an issue on stax on screens containing 6 entries.
69c3416 to
b39923a
Compare
Fixed too many arguments CI issue
b39923a to
3c37d15
Compare
STAX and FLEX menu feature not merged into zxlib yet
| static const char *review_key = REVIEW_SCREEN_TITLE; | ||
| static const char *review_txvalue = REVIEW_SCREEN_TXN_VALUE; | ||
| static const char *review_addrvalue = REVIEW_SCREEN_ADDR_VALUE; | ||
| static const char *review_keyconfig = "Review"; |
Check notice
Code scanning / CodeQL
Unused static variable Note
| static const char *review_txvalue = REVIEW_SCREEN_TXN_VALUE; | ||
| static const char *review_addrvalue = REVIEW_SCREEN_ADDR_VALUE; | ||
| static const char *review_keyconfig = "Review"; | ||
| static const char *review_configvalue = "configuration"; |
Check notice
Code scanning / CodeQL
Unused static variable Note
| static const char *review_addrvalue = REVIEW_SCREEN_ADDR_VALUE; | ||
| static const char *review_keyconfig = "Review"; | ||
| static const char *review_configvalue = "configuration"; | ||
| static const char *review_skip_key = "Warning"; |
Check notice
Code scanning / CodeQL
Unused static variable Note
| static const char *review_keyconfig = "Review"; | ||
| static const char *review_configvalue = "configuration"; | ||
| static const char *review_skip_key = "Warning"; | ||
| static const char *review_skip_value = "BlindSign"; |
Check notice
Code scanning / CodeQL
Unused static variable Note
| static const char *review_configvalue = "configuration"; | ||
| static const char *review_skip_key = "Warning"; | ||
| static const char *review_skip_value = "BlindSign"; | ||
| static const char *review_skip_key_msg = "Tx details"; |
Check notice
Code scanning / CodeQL
Unused static variable Note
| ((0x014a <= cp) && (0x0177 >= cp)) || ((0x0182 <= cp) && (0x0185 >= cp)) || | ||
| ((0x01a0 <= cp) && (0x01a5 >= cp)) || ((0x01de <= cp) && (0x01ef >= cp)) || | ||
| ((0x01f8 <= cp) && (0x021f >= cp)) || ((0x0222 <= cp) && (0x0233 >= cp)) || | ||
| ((0x0246 <= cp) && (0x024f >= cp)) || ((0x03d8 <= cp) && (0x03ef >= cp)) || | ||
| ((0x0460 <= cp) && (0x0481 >= cp)) || ((0x048a <= cp) && (0x04ff >= cp))) { | ||
| cp &= ~0x1; |
Check notice
Code scanning / CodeQL
Complex condition Note
| const uint16_t byteIdx = bitIdx >> 3u; | ||
| const uint8_t mask = 0x80u >> (bitIdx & 0x7u); | ||
| carry = (uint8_t) ((binValue[binValueLen - byteIdx - 1] & mask) > 0); | ||
| carry = (uint8_t)((binValue[binValueLen - byteIdx - 1] & mask) > 0); |
Check warning
Code scanning / CodeQL
Sign check of bitwise operation Warning
| const uint16_t byteIdx = bitIdx >> 3u; | ||
| const uint8_t mask = 0x80u >> (bitIdx & 0x7u); | ||
| carry = (uint8_t) ((binValue[byteIdx] & mask) > 0); | ||
| carry = (uint8_t)((binValue[byteIdx] & mask) > 0); |
Check warning
Code scanning / CodeQL
Sign check of bitwise operation Warning
|
|
||
| buffer_state_t ram; // Ram | ||
| buffer_state_t flash; // Flash | ||
| buffer_state_t ram; // Ram |
Check notice
Code scanning / CodeQL
Short global name Note
| while (date->tm_year < yearLookupSize && yearLookup[date->tm_year] <= time) date->tm_year++; | ||
| const uint16_t yearLookupSize = sizeof(yearLookup) / sizeof(yearLookup[0]); | ||
| while (date->tm_year < yearLookupSize && yearLookup[date->tm_year] <= time) { | ||
| date->tm_year++; |
Check warning
Code scanning / CodeQL
Year field changed using an arithmetic operation without checking for leap year Warning
| switch (token) { | ||
| case EXPERT_MODE_TOKEN: | ||
| h_expert_toggle(); | ||
| break; | ||
|
|
||
| #ifdef APP_ACCOUNT_MODE_ENABLED | ||
| case ACCOUNT_MODE_TOKEN: | ||
| account_enabled(); | ||
| break; | ||
| #endif | ||
|
|
||
| #ifdef APP_SECRET_MODE_ENABLED | ||
| case SECRET_MODE_TOKEN: | ||
| secret_enabled(); | ||
| break; | ||
| #endif | ||
|
|
||
| #ifdef APP_BLINDSIGN_MODE_ENABLED | ||
| case BLINDSIGN_MODE_TOKEN: | ||
| h_blindsign_toggle(); | ||
| break; | ||
| #endif | ||
|
|
||
| default: | ||
| ZEMU_LOGF(50, "Toggling setting not found\n") | ||
| break; | ||
| } |
Check notice
Code scanning / CodeQL
No trivial switch statements Note
|
Good job 😉 Seems it is ready now to be merged? Most probably, the next step will be to open a PR on |
Update zxlib. Flex almost works