Forum
button behaviour - Printable Version

+- Forum (https://copynotes.be/shift4me/forum)
+-- Forum: Discussion (https://copynotes.be/shift4me/forum/forum-6.html)
+--- Forum: Technical (https://copynotes.be/shift4me/forum/forum-7.html)
+---- Forum: Riding issues (https://copynotes.be/shift4me/forum/forum-11.html)
+---- Thread: button behaviour (/thread-14.html)



button behaviour - visitor007 - 08-20-2020

Hi. When I push the button and release it after the first beep, that puts it in bypass mode, am I right?
What I was wondering: when I'm in this mode and I push the button again, I don't hear it beep. Is this normal behaviour?


RE: button behaviour - Jan Oelbrandt - 08-23-2020

(08-20-2020, 09:49 AM)visitor007 Wrote: Hi. When I push the button and release it after the first beep, that puts it in bypass mode, am I right?
What I was wondering: when I'm in this mode and I push the button again, I don't hear it beep. Is this normal behaviour?
Yes, this is normal!
The Bypass function holds everything, by using a simple "delay" command in Arduino. That commands simply pauses the script, so new button actions during the bypass mode of 5 seconds don't get interpreted.
Screenshot here, you see it's set to 5000 (milliseconds, that is). The Act="no" command is there to reset to cadence count, so that after the Bypass of 5 seconds, the script starts counting from 0 again.