Skip to content

Commit ca9ac5a

Browse files
ananglcarlescufi
authored andcommitted
soc: nrf53: Restore accidentally removed suppress_message 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]>
1 parent 88d4ae7 commit ca9ac5a

File tree

1 file changed

+1
-1
lines changed
  • soc/arm/nordic_nrf/nrf53

1 file changed

+1
-1
lines changed

soc/arm/nordic_nrf/nrf53/soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ bool z_arm_on_enter_cpu_idle(void)
171171

172172
if (ok_to_sleep) {
173173
suppress_message = false;
174-
} else {
174+
} else if (!suppress_message) {
175175
LOG_DBG("Anomaly 160 trigger conditions detected.");
176176
suppress_message = true;
177177
}

0 commit comments

Comments
 (0)