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

Bugfix: Inonsistent Brew & Steam switch behaviours #413 #414 #417

Closed

Conversation

genkigenki
Copy link
Contributor

@genkigenki genkigenki commented Dec 10, 2023

Brew button was not debounced, leading to erratic behaviour if your switches are not perfect.
5s delay removed, as its not needed (was likely introduced due to erratic behaviour due to bouncing switches)
Fixes #413

Steam button configured as push button was twice checked and once not debounced. Removed check in main.cpp. Also migrated missing code to switchvoid file from main to ensure behaviour for switch users stays same.
Fixes #416

Copy link
Collaborator

@kjyv kjyv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, although not sure about the 5 second delay. Could this be there for making the (software) brew detection work? The comment mentions that. So please test if it is really unnecessary

src/brewvoid.h Show resolved Hide resolved
kjyv
kjyv previously approved these changes Dec 13, 2023
@LoQue90 LoQue90 self-requested a review December 13, 2023 17:01
Copy link
Member

@LoQue90 LoQue90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works worse than befor. dosen´t react to all pushes, brew start/stops not reliable
debounceDelayBrewTrigger set to 80 for test, did not help

@kjyv
Copy link
Collaborator

kjyv commented Dec 14, 2023

Thanks for testing again. My review was not based on actually testing this as I don't have a push button installed in my machine, guess I should have added that caveat

@LoQue90
Copy link
Member

LoQue90 commented Dec 14, 2023

Thanks for testing again. My review was not based on actually testing this as I don't have a push button installed in my machine, guess I should have added that caveat

don´t worry, the code is fine and works.
Problem is the debounce timing. Look like my stil of pushing that button is more a snap, which needs a faster debounce of 20ms.
Just wanted to check that :)

…bled debounce. Trigger time measurement & print to debug if VERBOSE. Debounce times to 20ms. Added variable brewSwitchLongPress to brewscale.ini, set to 500ms. Rename BREWSWITCHDELAY to SHOTTIMEDISPLAY, adapt comments to fit to functionality.
@genkigenki genkigenki closed this Dec 17, 2023
@genkigenki genkigenki deleted the BugfixBrewSteamPushbuttons branch February 11, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants