mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 09:42:35 +00:00
Reboot implementation for nrf devices (#1411)
This commit is contained in:
parent
f2dec07c8d
commit
3786b1ee15
@ -6,10 +6,13 @@
|
||||
|
||||
void powerCommandsCheck()
|
||||
{
|
||||
DEBUG_MSG("Rebooting\n");
|
||||
|
||||
if (rebootAtMsec && millis() > rebootAtMsec) {
|
||||
#ifndef NO_ESP32
|
||||
DEBUG_MSG("Rebooting for update\n");
|
||||
ESP.restart();
|
||||
#elif NRF52_SERIES
|
||||
NVIC_SystemReset();
|
||||
#else
|
||||
DEBUG_MSG("FIXME implement reboot for this platform");
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user