Commit 3d27e28f authored by João Lino's avatar João Lino

moved cancel buzz to when cancel is certain

moved cancel buzz to when cancel is certain
parent e22118e4
......@@ -1684,7 +1684,7 @@ boolean checkForEncoderSwitchPush( bool cancelable ) {
while (digitalRead(ROTARY_ENCODER_SW_PIN)) { // Wait until switch is released
delay(ROTARY_ENCODER_SW_DEBOUNCE_TIME); // debounce
if( ((millis() - cancleTimer) >= (SETTING_CANCEL_TIMER/2) ) && cancelable ) {
if( ((millis() - cancleTimer) >= SETTING_CANCEL_TIMER ) && cancelable ) {
sing(BUZZ_1, PIEZO_PIN);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment