-
Notifications
You must be signed in to change notification settings - Fork 323
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
Custom analog error rate #1136
Custom analog error rate #1136
Conversation
Functionally working, web is broken in the following ways: 1 - Error Rate title shows regardless of Forced Circularity being checked, but the selection box hides as expected 2 - Selecting a value saves, but when reloading the webpage there is an error and it thinks it's set to 0%
Improve formSelect to handle hidden prop
headers/addons/analog.h
Outdated
@@ -69,6 +69,10 @@ | |||
#define SMOOTHING_FACTOR 5 | |||
#endif | |||
|
|||
#ifndef ANALOG_ERROR | |||
#define ANALOG_ERROR 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the default value is zero we need to modify form validation
As zero does not exist as any value here: https://github.com/OpenStickCommunity/GP2040-CE/pull/1136/files#diff-1dc51191c1aed5b94ed7849f6d8458038a17ed0c47da979dd4de7e7adc3a8c99R25
Otherwise we will get the error:
When toggling the switch the first time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! More stuff converted to tsx is better
Add the ability to set a custom circularity error rate % for analog sticks.