mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 06:32:06 +00:00
Fix assert execution halt in nrf devices (#1410)
This commit is contained in:
parent
3786b1ee15
commit
75e7bccdfb
@ -33,8 +33,8 @@ void __attribute__((noreturn)) __assert_func(const char *file, int line, const c
|
|||||||
{
|
{
|
||||||
DEBUG_MSG("assert failed %s: %d, %s, test=%s\n", file, line, func, failedexpr);
|
DEBUG_MSG("assert failed %s: %d, %s, test=%s\n", file, line, func, failedexpr);
|
||||||
// debugger_break(); FIXME doesn't work, possibly not for segger
|
// debugger_break(); FIXME doesn't work, possibly not for segger
|
||||||
while (1)
|
// Reboot cpu
|
||||||
; // FIXME, reboot!
|
NVIC_SystemReset();
|
||||||
}
|
}
|
||||||
|
|
||||||
void getMacAddr(uint8_t *dmac)
|
void getMacAddr(uint8_t *dmac)
|
||||||
@ -196,4 +196,4 @@ void clearBonds() {
|
|||||||
nrf52Bluetooth->setup();
|
nrf52Bluetooth->setup();
|
||||||
}
|
}
|
||||||
nrf52Bluetooth->clearBonds();
|
nrf52Bluetooth->clearBonds();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user