sbitx
sbitx copied to clipboard
Improve handling of errors when saving user settings
This change will cause the next attempt to write the user settings file when there is a file write error to be delayed by 30 seconds,
For example, if the user decides to write protect the user settings file to reduce wear on the sd card, the code will detect the error and return with the settings_updated flag cleared. However the last_save_at variable was not getting updated during the handling of this error, so the function could be called again immediately.