Correct gateCloseTime method call (#7)

The code meant to set gateCloseTime but was actually setting gateOpenTime again.  This change fixes that problem.
pull/9/head
Chip Audette 5 years ago committed by Blackaddr Audio
parent d38be82ea6
commit ac9503525c
  1. 2
      examples/Delay/SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino

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

Loading…
Cancel
Save