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 @@ -187,18 +187,16 @@ void pm_s2ram_mark_set(void)
187
187
188
188
bool pm_s2ram_mark_check_and_clear (void )
189
189
{
190
- bool unretained_wake ;
191
190
bool restore_valid ;
192
191
uint32_t reset_reason = nrf_resetinfo_resetreas_local_get (NRF_RESETINFO );
193
192
194
193
if (reset_reason != NRF_RESETINFO_RESETREAS_LOCAL_UNRETAINED_MASK ) {
195
194
return false;
196
195
}
197
- unretained_wake = reset_reason & NRF_RESETINFO_RESETREAS_LOCAL_UNRETAINED_MASK ;
198
196
nrf_resetinfo_resetreas_local_set (NRF_RESETINFO , 0 );
199
197
200
198
restore_valid = nrf_resetinfo_restore_valid_check (NRF_RESETINFO );
201
199
nrf_resetinfo_restore_valid_set (NRF_RESETINFO , false);
202
200
203
- return ( unretained_wake & restore_valid ) ? true : false ;
201
+ return restore_valid ;
204
202
}
You can’t perform that action at this time.
0 commit comments