-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add initial persistent parameter API #280
Commits on Dec 1, 2021
-
Configuration menu - View commit details
-
Copy full SHA for df855b0 - Browse repository at this point
Copy the full SHA df855b0View commit details -
Param: add persistent_get_state method
Get the state of the specified persistent parameter. The state will be returned in the supplied callback. The state is represented as a namedtuple with members: `is_stored`, `default_value` and `stored_value`. The state is `None` if the parameter is not persistent or if something goes wrong. | Member | Description | | ----------------- | ----------------------------------------------- | | `is_stored` | `True` if the value is stored to eeprom | | `default_value` | The default value supplied by the firmware | | `stored_value` | Value stored in eeprom, None if `not is_stored` |
Configuration menu - View commit details
-
Copy full SHA for afeaa85 - Browse repository at this point
Copy the full SHA afeaa85View commit details -
Param: add persistent_store method
Store the current value of the specified persistent parameter to eeprom. The supplied callback will be called with `True` as an argument on success, and with `False` as an argument on failure.
Configuration menu - View commit details
-
Copy full SHA for 99c03a7 - Browse repository at this point
Copy the full SHA 99c03a7View commit details -
Param: add persistent_clear method
Clear the current value of the specified persistent parameter from eeprom. The supplied callback will be called with `True` as an argument on success, and with `False` as an argument on failure.
Configuration menu - View commit details
-
Copy full SHA for 75fa640 - Browse repository at this point
Copy the full SHA 75fa640View commit details -
param.py: Add complete name to callbacks
So that the same callback can multiplex for a lot of parameters.
Configuration menu - View commit details
-
Copy full SHA for ece4adf - Browse repository at this point
Copy the full SHA ece4adfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f45a73 - Browse repository at this point
Copy the full SHA 4f45a73View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3599be - Browse repository at this point
Copy the full SHA a3599beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d50f33 - Browse repository at this point
Copy the full SHA 7d50f33View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf747b1 - Browse repository at this point
Copy the full SHA cf747b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 914f8e4 - Browse repository at this point
Copy the full SHA 914f8e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b81a968 - Browse repository at this point
Copy the full SHA b81a968View commit details -
param: Raise AttributeError if not persistent
When doing persitent param operations, check that the parameter is persistent. Otherwise throw exception.
Configuration menu - View commit details
-
Copy full SHA for 14fa385 - Browse repository at this point
Copy the full SHA 14fa385View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2047c2 - Browse repository at this point
Copy the full SHA c2047c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b2378de - Browse repository at this point
Copy the full SHA b2378deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04bff62 - Browse repository at this point
Copy the full SHA 04bff62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10b2276 - Browse repository at this point
Copy the full SHA 10b2276View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99cc457 - Browse repository at this point
Copy the full SHA 99cc457View commit details
Commits on Dec 2, 2021
-
param: Send persistent param commands with param_updater
To make sure they get treated in the same queue and do not race against each other.
Configuration menu - View commit details
-
Copy full SHA for bada71b - Browse repository at this point
Copy the full SHA bada71bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30e4af3 - Browse repository at this point
Copy the full SHA 30e4af3View commit details
Commits on Dec 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 81184b4 - Browse repository at this point
Copy the full SHA 81184b4View commit details