Reboot implementation for nrf devices (#1411)

This commit is contained in:
Ben Meadors
2022-04-26 06:48:26 -05:00
committed by GitHub
parent f2dec07c8d
commit 3786b1ee15

View File

@@ -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