Skip to content

Commit

Permalink
Merge pull request #819 from LedgerHQ/pr-lnx-fix-inactivity-shutdown
Browse files Browse the repository at this point in the history
nanox: fix inactivity shutdown issue.
  • Loading branch information
sportron-ledger authored Nov 8, 2024
2 parents 35d1830 + 1f6bc24 commit 96fbd22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib_nbgl/src/nbgl_step.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,12 @@ nbgl_step_t nbgl_stepDrawCenteredInfo(nbgl_stepPosition_t pos,
// initialize context (already set to 0 by getFreeContext())
ctx->textContext.onActionCallback = onActionCallback;
if (ticker) {
ctx->ticker.tickerCallback = ticker->tickerCallback;
ctx->ticker.tickerIntervale = ticker->tickerIntervale;
ctx->ticker.tickerValue = ticker->tickerValue;
ctx->ticker.tickerCallback = ticker->tickerCallback;
ctx->ticker.tickerIntervale = ticker->tickerIntervale;
ctx->ticker.tickerValue = ticker->tickerValue;
layoutDescription.ticker.tickerCallback = ticker->tickerCallback;
layoutDescription.ticker.tickerIntervale = ticker->tickerIntervale;
layoutDescription.ticker.tickerValue = ticker->tickerValue;
}

ctx->textContext.nbPages = 1;
Expand Down

0 comments on commit 96fbd22

Please sign in to comment.