Skip to content

Commit c7c37c4

Browse files
Merge pull request #754 from LedgerHQ/tdj/minor_nbgl_doc_fixes
Minor nbgl doc fixes
2 parents 4141b77 + ceee4d4 commit c7c37c4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib_nbgl/doc/nbgl_use_case.dox

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ static void controlsCallback(int token, uint8_t index, int page) {
128128
}
129129
}
130130

131-
static nbgl_content_t contentsList = {
131+
static const nbgl_content_t contentsList = {
132132
.content.switchesList.nbSwitches = 2,
133133
.content.switchesList.switches = switches,
134134
.type = SWITCHES_LIST,
135135
.contentActionCallback = controlsCallback
136136
};
137137

138-
nbgl_genericContents_t eth_settingContents
138+
static const nbgl_genericContents_t eth_settingContents
139139
= {.contentsList = &contentsList, .nbContents = 1};
140-
nbgl_contentInfoList_t eth_infosList
140+
static const nbgl_contentInfoList_t eth_infosList
141141
= {.nbInfos = 2, .infoTypes = infoTypes, .infoContents = infoContents};
142142

143143
void onQuit(void) {
@@ -264,7 +264,7 @@ Here is the code to display something similar to example picture:
264264
// 4 pairs of tag/value to display
265265
static nbgl_layoutTagValue_t pairs[4];
266266

267-
static nbgl_contentTagValueList_t pairList = {
267+
static const nbgl_contentTagValueList_t pairList = {
268268
.nbMaxLinesForValue = 0,
269269
.nbPairs = 4,
270270
.pairs = (nbgl_layoutTagValue_t*)pairs
@@ -301,7 +301,7 @@ static nbgl_layoutTagValue_t pair;
301301

302302
static nbgl_layoutTagValue_t* getPair(uint8_t index);
303303

304-
static nbgl_contentTagValueList_t pairList = {
304+
static const nbgl_contentTagValueList_t pairList = {
305305
.nbMaxLinesForValue = 0,
306306
.nbPairs = 4,
307307
.pairs = NULL, // to indicate that callback should be used
@@ -506,7 +506,7 @@ Here is the code to display something similar to example picture:
506506
// 2 pairs of tag/value to display in second page
507507
static nbgl_layoutTagValue_t pairs[2];
508508

509-
static nbgl_contentTagValueList_t pairList = {
509+
static const nbgl_contentTagValueList_t pairList = {
510510
.nbMaxLinesForValue = 0,
511511
.nbPairs = 2,
512512
.pairs = (nbgl_layoutTagValue_t*)pairs

0 commit comments

Comments
 (0)