Skip to content
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

Merged
merged 20 commits into from
Dec 3, 2021
Merged

Commits on Dec 1, 2021

  1. Configuration menu
    Copy the full SHA
    df855b0 View commit details
    Browse the repository at this point in the history
  2. 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` |
    jonasdn authored and krichardsson committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    afeaa85 View commit details
    Browse the repository at this point in the history
  3. 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.
    jonasdn authored and krichardsson committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    99c03a7 View commit details
    Browse the repository at this point in the history
  4. 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.
    jonasdn authored and krichardsson committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    75fa640 View commit details
    Browse the repository at this point in the history
  5. param.py: Add complete name to callbacks

    So that the same callback can multiplex for a lot of parameters.
    jonasdn authored and krichardsson committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    ece4adf View commit details
    Browse the repository at this point in the history
  6. param.py: Fix pep8

    jonasdn authored and krichardsson committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    4f45a73 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a3599be View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7d50f33 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cf747b1 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    914f8e4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b81a968 View commit details
    Browse the repository at this point in the history
  12. param: Raise AttributeError if not persistent

    When doing persitent param operations, check that the parameter is
    persistent. Otherwise throw exception.
    jonasdn authored and krichardsson committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    14fa385 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c2047c2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b2378de View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    04bff62 View commit details
    Browse the repository at this point in the history
  16. pep8 and clean up

    krichardsson committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    10b2276 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    99cc457 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2021

  1. 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.
    jonasdn committed Dec 2, 2021
    Configuration menu
    Copy the full SHA
    bada71b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    30e4af3 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2021

  1. Configuration menu
    Copy the full SHA
    81184b4 View commit details
    Browse the repository at this point in the history