@@ -128,16 +128,16 @@ static void controlsCallback(int token, uint8_t index, int page) {
128
128
}
129
129
}
130
130
131
- static nbgl_content_t contentsList = {
131
+ static const nbgl_content_t contentsList = {
132
132
.content.switchesList.nbSwitches = 2,
133
133
.content.switchesList.switches = switches,
134
134
.type = SWITCHES_LIST,
135
135
.contentActionCallback = controlsCallback
136
136
};
137
137
138
- nbgl_genericContents_t eth_settingContents
138
+ static const nbgl_genericContents_t eth_settingContents
139
139
= {.contentsList = &contentsList, .nbContents = 1};
140
- nbgl_contentInfoList_t eth_infosList
140
+ static const nbgl_contentInfoList_t eth_infosList
141
141
= {.nbInfos = 2, .infoTypes = infoTypes, .infoContents = infoContents};
142
142
143
143
void onQuit(void) {
@@ -264,7 +264,7 @@ Here is the code to display something similar to example picture:
264
264
// 4 pairs of tag/value to display
265
265
static nbgl_layoutTagValue_t pairs[4];
266
266
267
- static nbgl_contentTagValueList_t pairList = {
267
+ static const nbgl_contentTagValueList_t pairList = {
268
268
.nbMaxLinesForValue = 0,
269
269
.nbPairs = 4,
270
270
.pairs = (nbgl_layoutTagValue_t*)pairs
@@ -301,7 +301,7 @@ static nbgl_layoutTagValue_t pair;
301
301
302
302
static nbgl_layoutTagValue_t* getPair(uint8_t index);
303
303
304
- static nbgl_contentTagValueList_t pairList = {
304
+ static const nbgl_contentTagValueList_t pairList = {
305
305
.nbMaxLinesForValue = 0,
306
306
.nbPairs = 4,
307
307
.pairs = NULL, // to indicate that callback should be used
@@ -506,7 +506,7 @@ Here is the code to display something similar to example picture:
506
506
// 2 pairs of tag/value to display in second page
507
507
static nbgl_layoutTagValue_t pairs[2];
508
508
509
- static nbgl_contentTagValueList_t pairList = {
509
+ static const nbgl_contentTagValueList_t pairList = {
510
510
.nbMaxLinesForValue = 0,
511
511
.nbPairs = 2,
512
512
.pairs = (nbgl_layoutTagValue_t*)pairs
0 commit comments