|
24 | 24 | // 365.25 * 24*60*60 = 31557600
|
25 | 25 | #define ICP_YEAR_IN_SECONDS ((uint64_t)31557600)
|
26 | 26 |
|
27 |
| -parser_error_t page_principal_with_delimiters(const char *input, const uint16_t inputLen, char *output, const uint16_t outputLen, const uint8_t pageIdx, uint8_t *pageCount) { |
28 | 27 | #if defined(TARGET_STAX)
|
29 |
| - const uint8_t LINES_PER_PAGE = 7; |
| 28 | +#include "view_internal.h" |
| 29 | + const uint8_t LINES_PER_PAGE = MAX_LINES_PER_PAGE_REVIEW; |
30 | 30 | #elif defined(TARGET_NANOS2) || defined(TARGET_NANOX)
|
31 | 31 | const uint8_t LINES_PER_PAGE = 3;
|
32 | 32 | #else
|
33 | 33 | const uint8_t LINES_PER_PAGE = 2;
|
34 | 34 | #endif
|
35 | 35 |
|
| 36 | +parser_error_t page_principal_with_delimiters(const char *input, const uint16_t inputLen, char *output, const uint16_t outputLen, const uint8_t pageIdx, uint8_t *pageCount) { |
36 | 37 | const uint8_t CHARS_PER_CHUNK = 5;
|
37 | 38 | const uint8_t CHARS_PER_PAGE = 15 * LINES_PER_PAGE;
|
38 | 39 | const uint8_t CHUNKS_PER_PAGE = 3 * LINES_PER_PAGE;
|
@@ -80,14 +81,6 @@ parser_error_t page_principal_with_delimiters(const char *input, const uint16_t
|
80 | 81 | parser_error_t print_subaccount_hex(const uint8_t *input, const uint64_t inputLen,
|
81 | 82 | char *output, const uint16_t outputLen,
|
82 | 83 | const uint8_t pageIdx, uint8_t *pageCount) {
|
83 |
| -#if defined(TARGET_STAX) |
84 |
| - const uint8_t LINES_PER_PAGE = 7; |
85 |
| -#elif defined(TARGET_NANOS2) || defined(TARGET_NANOX) |
86 |
| - const uint8_t LINES_PER_PAGE = 3; |
87 |
| -#else |
88 |
| - const uint8_t LINES_PER_PAGE = 2; |
89 |
| -#endif |
90 |
| - |
91 | 84 | const uint8_t CHARS_PER_CHUNK = 8;
|
92 | 85 | const uint8_t CHARS_PER_PAGE = 16 * LINES_PER_PAGE;
|
93 | 86 | const uint8_t CHUNKS_PER_PAGE = 2 * LINES_PER_PAGE;
|
|
0 commit comments