We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 504a8ab commit d0331feCopy full SHA for d0331fe
soc/nordic/nrf54h/pm_s2ram.c
@@ -184,18 +184,16 @@ void pm_s2ram_mark_set(void)
184
185
bool pm_s2ram_mark_check_and_clear(void)
186
{
187
- bool unretained_wake;
188
bool restore_valid;
189
uint32_t reset_reason = nrf_resetinfo_resetreas_local_get(NRF_RESETINFO);
190
191
if (reset_reason != NRF_RESETINFO_RESETREAS_LOCAL_UNRETAINED_MASK) {
192
return false;
193
}
194
- unretained_wake = reset_reason & NRF_RESETINFO_RESETREAS_LOCAL_UNRETAINED_MASK;
195
nrf_resetinfo_resetreas_local_set(NRF_RESETINFO, 0);
196
197
restore_valid = nrf_resetinfo_restore_valid_check(NRF_RESETINFO);
198
nrf_resetinfo_restore_valid_set(NRF_RESETINFO, false);
199
200
- return (unretained_wake & restore_valid) ? true : false;
+ return restore_valid ? true : false;
201
0 commit comments