From c6ad2b6c53bb114b88d631e179b719c15285f753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20St=C3=A4ck?= Date: Sat, 27 Jul 2019 13:32:39 +0200 Subject: [PATCH] Init variables to avoid (incorrect) compiler warnings --- NuEVI/NuEVI.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NuEVI/NuEVI.ino b/NuEVI/NuEVI.ino index d94a939..72742b5 100644 --- a/NuEVI/NuEVI.ino +++ b/NuEVI/NuEVI.ino @@ -821,8 +821,8 @@ void pitch_bend() { int vibMax; int calculatedPBdepth; byte pbTouched = 0; - int vibRead; - int vibReadBite; + int vibRead = 0; + int vibReadBite = 0; pbUp = touchRead(pbUpPin); // SENSOR PIN 23 - PCB PIN "Pu" pbDn = touchRead(pbDnPin); // SENSOR PIN 22 - PCB PIN "Pd" halfPitchBendKey = (pinkySetting == PBD) && (touchRead(halfPitchBendKeyPin) > touch_Thr); // SENSOR PIN 1 - PCB PIN "S1" - hold for 1/2 pitchbend value