mirror of
https://github.com/google/pebble.git
synced 2025-06-05 09:43:12 +00:00
spelling: occurred
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
0f0c1cca12
commit
3d34684548
10 changed files with 15 additions and 15 deletions
|
@ -50,11 +50,11 @@ NORETURN system_reset(void) {
|
|||
// if we're in a critical section, interrupt or if the scheduler has been suspended
|
||||
if (!already_failed && !mcu_state_is_isr() && !portIN_CRITICAL() &&
|
||||
(xTaskGetSchedulerState() == taskSCHEDULER_RUNNING)) {
|
||||
system_reset_prepare(failure_occurred /* skip BT teardown if failure occured */);
|
||||
system_reset_prepare(failure_occurred /* skip BT teardown if failure occurred */);
|
||||
reboot_reason_set_restarted_safely();
|
||||
}
|
||||
|
||||
// If a software failure occcured, do a core dump before resetting
|
||||
// If a software failure occurred, do a core dump before resetting
|
||||
if (failure_occurred) {
|
||||
core_dump_reset(false /* don't force overwrite */);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue