Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changes the behavior of the 9-count long button press handler on the receiver from simply rebooting to resetting the config to defaults, then rebooting. STM32 platform also gets this functionality.
Porblem
There is no way to reset RX config on STM32 platform, meaning options which are webui-only (Force Telemetry Off is the only real problem) have no way to be undone on these devices without reflashing them with an old version and back again.
Details
Almost all of them have bind buttons and the remainder have a boot pad, so let's take advantage of that.
The boot pad / button on ESP and ESP32 RX currently has a 9x long press handler on it which reboots the RX. The sequence is that it goes into wifi mode on 5x long presses, then reboots at 9x. I'm not sure anyone actually uses this to reboot their RX, so it seems like this is a good place to stick the config reset function. It seemed everyone in dev chat was on board with this being the better functionality.
Bonus
RadioMaster has indicated they have some support tickets which are crusty old fixed wing people who won't look up the "3-plugs to rebind" procedure and they expect the button to do this for them. Since this resets the config, this effectively unbinds the model with a long enough press, which may save some support requests. We need a way to reset config anyway so win-win right?
Tested