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

B2CA-1648: Port Flex #51

Merged
merged 10 commits into from
May 27, 2024
Prev Previous commit
Next Next commit
Fix TARGET_xxx usage
cedelavergne-ledger committed May 27, 2024
commit 329bda7954a26c428eea00fad14165c044da3fed
16 changes: 8 additions & 8 deletions src/limitations.h
Original file line number Diff line number Diff line change
@@ -32,20 +32,20 @@
// Hardware dependent limits
// Ledger Nano X has 30K RAM
// Ledger Nano S has 4K RAM
#if defined(TARGET_NANOX) || defined(TARGET_NANOS2) || defined(TARGET_STAX)

#define MAX_FIELD_COUNT 60
#define MAX_FIELD_LEN 1024
#define MAX_RAW_TX 10000
#define DISPLAY_SEGMENTED_ADDR false

#elif defined(TARGET_NANOS)
#if defined(TARGET_NANOS)

#define MAX_FIELD_COUNT 24
#define MAX_FIELD_LEN 128
#define MAX_RAW_TX 800
#define DISPLAY_SEGMENTED_ADDR true

#else

#define MAX_FIELD_COUNT 60
#define MAX_FIELD_LEN 1024
#define MAX_RAW_TX 10000
#define DISPLAY_SEGMENTED_ADDR false

#endif

#endif // LEDGER_APP_XRP_LIMITATIONS_H