openlcb / OpenLCB_Java

A git-managed copy of the SVN-based Java prototype implementation of OpenLCB. This implementation operates inside JMRI.
6 stars 9 forks source link

Reload config after factory reset #232

Closed balazsracz closed 2 months ago

balazsracz commented 10 months ago

Since #227 we have a factory reset in the More... menu in the CDI. After the factory reset completes, we should reload the CDI values. This would also give visual confirmation to the user that something did happen.

The tricky business is when to do it. The node might need a small amount of time to actually perform the factory reset. This might involve erasing flash for example, during which the node is often not responsive. It might reboot the node. The node might send out a node initialization complete. It might send out a bunch of event identification messages. These are good hints that the reset is complete.

My recommendation is this:

dpharris commented 2 months ago

Resolved with updates.