Skip to content

Commit

Permalink
[nrf fromtree] soc: nrf53: Restore accidentally removed suppress_mess…
Browse files Browse the repository at this point in the history
…age flag check

This is a follow-up to commit 7195db0.

Restore the check that was accidentaliy removed in the above commit,
so that the message is again logged only once per detection of the
anomaly 160 conditions.

Signed-off-by: Andrzej Głąbek <[email protected]>
(cherry picked from commit ca9ac5a)
  • Loading branch information
anangl authored and rlubos committed Mar 15, 2023
1 parent d1f9c73 commit 5ba0c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soc/arm/nordic_nrf/nrf53/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ bool z_arm_on_enter_cpu_idle(void)

if (ok_to_sleep) {
suppress_message = false;
} else {
} else if (!suppress_message) {
LOG_DBG("Anomaly 160 trigger conditions detected.");
suppress_message = true;
}
Expand Down

0 comments on commit 5ba0c30

Please sign in to comment.