sforkowany z mirror/meshtastic-firmware
Reboot implementation for nrf devices (#1411)
rodzic
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
|
||||
|
|
Ładowanie…
Reference in New Issue