File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -184,18 +184,16 @@ void pm_s2ram_mark_set(void)
184
184
185
185
bool pm_s2ram_mark_check_and_clear (void )
186
186
{
187
- bool unretained_wake ;
188
187
bool restore_valid ;
189
188
uint32_t reset_reason = nrf_resetinfo_resetreas_local_get (NRF_RESETINFO );
190
189
191
190
if (reset_reason != NRF_RESETINFO_RESETREAS_LOCAL_UNRETAINED_MASK ) {
192
191
return false;
193
192
}
194
- unretained_wake = reset_reason & NRF_RESETINFO_RESETREAS_LOCAL_UNRETAINED_MASK ;
195
193
nrf_resetinfo_resetreas_local_set (NRF_RESETINFO , 0 );
196
194
197
195
restore_valid = nrf_resetinfo_restore_valid_check (NRF_RESETINFO );
198
196
nrf_resetinfo_restore_valid_set (NRF_RESETINFO , false);
199
197
200
- return ( unretained_wake & restore_valid ) ? true : false;
198
+ return restore_valid ? true : false;
201
199
}
You can’t perform that action at this time.
0 commit comments