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