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

Improved internal parameter set/get functions #1077

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

tobbeanton
Copy link
Member

As a first step this PR will fix #1073 but it will need more work as the functions to internally set/get params need a clearer definition and error handling.

The checks to evaluate the type of param has been moved to an assert and made simpler. For the future I'm not so sure asserts are such a good idea but this would have to be part of a bigger redesign of the firmware. I am now only checking the type (PARAM_TYPE_INT and PARAM_TYPE_FLOAT) and if it is setting a param with PARAM_RONLY.

@ntamas
Copy link
Contributor

ntamas commented Jul 7, 2022

Looks good to me!

@tobbeanton tobbeanton merged commit b45f54f into master Jul 8, 2022
@tobbeanton tobbeanton deleted the tobba/param_internal_fix branch July 8, 2022 07:46
@krichardsson krichardsson added this to the 2022.09 milestone Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

paramSetFloat() seems to be broken for persistent parameters
3 participants