meshtastic / framework-portduino

An Arduino API that sits on top of Linux and other operating systems. This lets you run Arduino code on Raspberry PI, desktops, etc... All as a standard user-space application.
GNU Lesser General Public License v2.1
30 stars 13 forks source link

Work on reboot() #28

Closed jp-bennett closed 4 months ago

jp-bennett commented 4 months ago

We're seeing instances of segfaults around reboot() calls, and one of the possibilities is that our execv() call is failing, so add error handling to that.

Then it's rather annoying when running with the -e or --erase command, to try to change a setting, only to have it erased on reboot(), so we strip that flag before reboot().