From ac9503525ce939b54f0bf43857a54fedf11670c5 Mon Sep 17 00:00:00 2001 From: Chip Audette Date: Sun, 23 Jun 2019 20:09:22 -0400 Subject: [PATCH] Correct gateCloseTime method call (#7) The code meant to set gateCloseTime but was actually setting gateOpenTime again. This change fixes that problem. --- .../SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Delay/SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino b/examples/Delay/SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino index fea6ec0..9068267 100644 --- a/examples/Delay/SoundOnSoundExpansionDemo/SoundOnSoundExpansionDemo.ino +++ b/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)); }