Portduino reboot (#3033)

* Portduino reboot

* separate blocks

---------

Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Wolfgang Nagele 2023-12-27 15:16:53 +01:00 committed by GitHub
parent 2d35f72d85
commit 5110de4838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,11 @@ void powerCommandsCheck()
Wire.end();
Serial1.end();
reboot();
#elif defined(ARCH_PORTDUINO)
deInitApiServer();
SPI.end();
Wire.end();
reboot();
#else
rebootAtMsec = -1;
LOG_WARN("FIXME implement reboot for this platform. Note that some settings require a restart to be applied.\n");