This commit is contained in:
2026-04-14 19:59:36 +09:00
parent 53a72e35dd
commit e659db6dbf
5 changed files with 15 additions and 7 deletions

View File

@@ -100,11 +100,11 @@ __WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info)
NRF_BREAKPOINT_COND;
// On assert, the system can only recover with a reset.
#ifndef DEBUG
#ifndef DEBUG // DEBUG 모드가 아닌 경우 = RELEASE 모드인 경우
NRF_LOG_WARNING("System reset");
NVIC_SystemReset();
#else
#else // DEBUG 모드인 경우
app_error_save_and_stop(id, pc, info);
#endif // DEBUG
#endif
}
/*lint -restore */