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 #414

Closed
wants to merge 9 commits into from

Conversation

genkigenki
Copy link
Contributor

@genkigenki genkigenki commented Dec 9, 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)

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.

@genkigenki genkigenki changed the title Bugfix: Inonsistent Brew switch behaviour #413 Bugfix: Inonsistent Brew switch behaviour #413 #414 Dec 9, 2023
@genkigenki genkigenki changed the title Bugfix: Inonsistent Brew switch behaviour #413 #414 Bugfix: Inonsistent Brew & Steam switch behaviours #413 #414 Dec 9, 2023
@genkigenki genkigenki closed this Dec 10, 2023
genkigenki added a commit to genkigenki/clevercoffee that referenced this pull request Dec 18, 2023
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled 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 SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastButtonStateBrewTrigger
genkigenki added a commit to genkigenki/clevercoffee that referenced this pull request Dec 18, 2023
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled 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 SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastButtonStateBrewTrigger
LoQue90 pushed a commit to LoQue90/clevercoffee that referenced this pull request Dec 26, 2023
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled debounce.  Debounce times to 20ms.
Added variable brewSwitchLongPress and set to 500ms.
Rename BREWSWITCHDELAY to SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastStateBrewTrigger
clean brewvoid
rename a lot of variables to naming scheme
LoQue90 pushed a commit to LoQue90/clevercoffee that referenced this pull request Dec 26, 2023
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled debounce.  Debounce times to 20ms.
Added variable brewSwitchLongPress and set to 500ms.
Rename BREWSWITCHDELAY to SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastStateBrewTrigger
clean brewvoid
rename a lot of variables to naming scheme
LoQue90 pushed a commit to LoQue90/clevercoffee that referenced this pull request Dec 26, 2023
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled debounce.  Debounce times to 20ms.
Added variable brewSwitchLongPress and set to 500ms.
Rename BREWSWITCHDELAY to SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastStateBrewTrigger
clean brewvoid
rename a lot of variables to naming scheme
rename var steam and power trigger
LoQue90 pushed a commit to LoQue90/clevercoffee that referenced this pull request Jan 4, 2024
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled debounce.  Debounce times to 20ms.
Added variable brewSwitchLongPress and set to 500ms.
Rename BREWSWITCHDELAY to SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastStateBrewTrigger
clean brewvoid
rename a lot of variables to naming scheme
rename var steam and power trigger

more rename variables
LoQue90 pushed a commit to LoQue90/clevercoffee that referenced this pull request Jan 4, 2024
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled debounce.  Debounce times to 20ms.
Added variable brewSwitchLongPress and set to 500ms.
Rename BREWSWITCHDELAY to SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastStateBrewTrigger
clean brewvoid
rename a lot of variables to naming scheme
rename var steam and power trigger

more rename variables
LoQue90 pushed a commit to LoQue90/clevercoffee that referenced this pull request Jan 8, 2024
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled debounce.  Debounce times to 20ms.
Added variable brewSwitchLongPress and set to 500ms.
Rename BREWSWITCHDELAY to SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastStateBrewTrigger
clean brewvoid
rename a lot of variables to naming scheme
rename var steam and power trigger

more rename variables
LoQue90 pushed a commit to LoQue90/clevercoffee that referenced this pull request Jan 8, 2024
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled debounce.  Debounce times to 20ms.
Added variable brewSwitchLongPress and set to 500ms.
Rename BREWSWITCHDELAY to SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastStateBrewTrigger
clean brewvoid
rename a lot of variables to naming scheme
rename var steam and power trigger

more rename variables
fiendie pushed a commit that referenced this pull request Jan 8, 2024
Debounce on Brew trigger. Steam trigger code duplication disabled debounce.  Debounce times to 20ms.
Added variable brewSwitchLongPress and set to 500ms.
Rename BREWSWITCHDELAY to SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastStateBrewTrigger
clean brewvoid
rename a lot of variables to naming scheme
rename var steam and power trigger

more rename variables
genkigenki added a commit to genkigenki/clevercoffee that referenced this pull request Jan 20, 2024
…ancilio-pid#414

Debounce on Brew trigger. Steam trigger code duplication disabled debounce.  Debounce times to 20ms.
Added variable brewSwitchLongPress and set to 500ms.
Rename BREWSWITCHDELAY to SHOTTIMERDISPLAYDELAY, adapt comments to fit to functionality.
Rename brewSwitchLongPress -> brewTriggerLongPress and
lastButtonStateBrew -> lastStateBrewTrigger
clean brewvoid
rename a lot of variables to naming scheme
rename var steam and power trigger

more rename variables
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.

2 participants