PelionIoT / mbed-edge

Edge Core
https://izumanetworks.com
Apache License 2.0
25 stars 32 forks source link

Don't stop monitoring the RFS GPIO after one press #83

Closed kjbracey closed 2 years ago

kjbracey commented 2 years ago

A reset factory settings request may fail if the user code hook reports failure, and edge will keep running.

So don't exit the GPIO monitoring thread immediately after making the RFS request. Leave it running (to be cancelled if/when the entire process stops).

Also detach the GPIO thread, as we're not monitoring it.