Skip to content

Commit

Permalink
Merge pull request #754 from LedgerHQ/tdj/minor_nbgl_doc_fixes
Browse files Browse the repository at this point in the history
Minor nbgl doc fixes
  • Loading branch information
tdejoigny-ledger authored Aug 26, 2024
2 parents 4141b77 + ceee4d4 commit c7c37c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib_nbgl/doc/nbgl_use_case.dox
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ static void controlsCallback(int token, uint8_t index, int page) {
}
}

static nbgl_content_t contentsList = {
static const nbgl_content_t contentsList = {
.content.switchesList.nbSwitches = 2,
.content.switchesList.switches = switches,
.type = SWITCHES_LIST,
.contentActionCallback = controlsCallback
};

nbgl_genericContents_t eth_settingContents
static const nbgl_genericContents_t eth_settingContents
= {.contentsList = &contentsList, .nbContents = 1};
nbgl_contentInfoList_t eth_infosList
static const nbgl_contentInfoList_t eth_infosList
= {.nbInfos = 2, .infoTypes = infoTypes, .infoContents = infoContents};

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

static nbgl_contentTagValueList_t pairList = {
static const nbgl_contentTagValueList_t pairList = {
.nbMaxLinesForValue = 0,
.nbPairs = 4,
.pairs = (nbgl_layoutTagValue_t*)pairs
Expand Down Expand Up @@ -301,7 +301,7 @@ static nbgl_layoutTagValue_t pair;

static nbgl_layoutTagValue_t* getPair(uint8_t index);

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

static nbgl_contentTagValueList_t pairList = {
static const nbgl_contentTagValueList_t pairList = {
.nbMaxLinesForValue = 0,
.nbPairs = 2,
.pairs = (nbgl_layoutTagValue_t*)pairs
Expand Down

0 comments on commit c7c37c4

Please sign in to comment.