Skip to content

Commit

Permalink
nanox: fix inactivity shutdown issue.
Browse files Browse the repository at this point in the history
(cherry picked from commit 1f6bc24)
  • Loading branch information
Stephane Portron authored and abonnaudet-ledger committed Nov 8, 2024
1 parent 9682d35 commit ec96367
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 ec96367

Please sign in to comment.