hexdrive.py function to report version - used by main app, EEPROM erase. #46
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.
hexpansion now exposes function to return its app version.
main app attempts to call the new hexpansion function to check if hexpansion app needs to be upgraded. If it can't be called or returns version that isn't the current one (not strict about being higher or just that it isn't the same) then offers upgrade.
When hexpansions are inserted it takes time for the scheduler to be aware of their app (as it is sent from hexpansion app to scheduler via events) - so we have to be prepared that it can't be found immediately, yet still have a timeout of how long we will wait. If app can't be found then also assume hexpansion app needs to be updated.
use of settings: use same convention as EEH app "appname"."setting". Refactor to have defaults and dynamically build full setting name for use in get setttings.
Differentiate bad error message (red) from good message (green) requesting reboop after successful upgrade.
secret feature (enabled by setting "badgebot.erase_eeprom") to enable eeprom on hexpansion in specified slot to be erased (useful to being able to reuse hexpansion to test initialisation and upgrade features.)
rename ports_with_upgraded_hexdrive to ports_with_latest_hexdrive as clearer language as hexdrive may have started with the latest version rather than be upgraded.