Skip to content

Commit 5ba0c30

Browse files
ananglrlubos
authored andcommitted
[nrf fromtree] 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]> (cherry picked from commit ca9ac5a)
1 parent d1f9c73 commit 5ba0c30

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
@@ -177,7 +177,7 @@ bool z_arm_on_enter_cpu_idle(void)
177177

178178
if (ok_to_sleep) {
179179
suppress_message = false;
180-
} else {
180+
} else if (!suppress_message) {
181181
LOG_DBG("Anomaly 160 trigger conditions detected.");
182182
suppress_message = true;
183183
}

0 commit comments

Comments
 (0)