Correct gateCloseTime method call

The code meant to set gateCloseTime but was actually setting gateOpenTime again.  This change fixes that problem.
pull/7/head
Chip Audette 5 years ago committed by GitHub
parent d38be82ea6
commit 36749fce85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/Delay/SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino

@ -186,7 +186,7 @@ void loop() {
// Use POT2 (right) to control the feedback setting
if (controls.checkPotValue(closeHandle, potValue)) {
// Pot has changed
sos.gateOpenTime(potValue * MAX_GATE_TIME_MS);
sos.gateCloseTime(potValue * MAX_GATE_TIME_MS);
Serial.println(String("New CLOSE GATE setting (ms): ") + (potValue * MAX_GATE_TIME_MS));
}

Loading…
Cancel
Save