Skip to content
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

NBGL rationalization #146

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/monero_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ enum device_mode { NONE, TRANSACTION_CREATE_REAL, TRANSACTION_CREATE_FAKE, TRANS
#define DISP_SUB 0x52
#define DISP_INTEGRATED 0x53

#define MAX_AMOUNT_LENGTH 23
#define MAX_ADDR_LENGTH 160

struct monero_v_state_s {
unsigned char state;
unsigned char protocol;
Expand Down Expand Up @@ -187,9 +190,9 @@ struct monero_v_state_s {
/* menu */
char ux_menu[16];
// address to display: 95/106-chars + null
char ux_address[160];
char ux_address[MAX_ADDR_LENGTH];
// xmr to display: max pow(2,64) unit, aka 20-chars + '0' + dot + null
char ux_amount[23];
char ux_amount[MAX_AMOUNT_LENGTH];
// addr mode
unsigned char disp_addr_mode;
// M.m address
Expand Down
Loading
Loading