From 7c1aa2c0a435ab334dfb10195818d45784a0b4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20St=C3=A4ck?= Date: Wed, 16 Oct 2019 15:28:23 +0200 Subject: [PATCH] touchValue never used here, no point in reading touch data. --- NuEVI/NuEVI.ino | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/NuEVI/NuEVI.ino b/NuEVI/NuEVI.ino index ff47543..5934dc6 100644 --- a/NuEVI/NuEVI.ino +++ b/NuEVI/NuEVI.ino @@ -1027,10 +1027,7 @@ void pitch_bend() { //*********************************************************** void doorKnobCheck() { - int touchValue[12]; - for (byte i = 0; i < 12; i++) { - touchValue[i] = touchSensor.filteredData(i); - } + if (gateOpenEnable){ if (K4 && R1 && R2 && R3) { // doorknob grip on canister if (!gateOpen && (pbUp > ((pitchbMaxVal + pitchbThrVal) / 2))) {