Fix for negative breath activated controls.

This commit is contained in:
Johan Berglund 2019-10-22 19:33:08 +02:00
parent 8c1a7444c6
commit 32981cb992

View file

@ -465,7 +465,7 @@ void loop() {
}
}
} else {
if (pbDn > (pitchbMaxVal + pitchbThrVal) / 2 && (analogRead(breathSensorPin) < (breathCalZero - 850)) && programonce == false) { // down bend for suck programming button
if ((pbDn > (pitchbMaxVal + pitchbThrVal) / 2) && legacyBrAct && brSuck && programonce == false) { // down bend for suck programming button
programonce = true;
if (octaveR == 0) { //lowest octave position