From ec96367d980a7f856cce68ba53c604b065063f94 Mon Sep 17 00:00:00 2001 From: Stephane Portron Date: Thu, 7 Nov 2024 17:54:45 +0100 Subject: [PATCH] nanox: fix inactivity shutdown issue. (cherry picked from commit 1f6bc24686512ae194dfbaa04214ba3a07e67673) --- lib_nbgl/src/nbgl_step.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib_nbgl/src/nbgl_step.c b/lib_nbgl/src/nbgl_step.c index 774fb0a6a..e5a9d6f64 100644 --- a/lib_nbgl/src/nbgl_step.c +++ b/lib_nbgl/src/nbgl_step.c @@ -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;