From d6107e348924cbd6302a0f3cbfc3c181381f7b55 Mon Sep 17 00:00:00 2001 From: MrDham Date: Sun, 6 Mar 2022 16:36:02 +0100 Subject: [PATCH] Update application.cpp --- Open_Theremin_V3/application.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open_Theremin_V3/application.cpp b/Open_Theremin_V3/application.cpp index a554aea..09f2a07 100644 --- a/Open_Theremin_V3/application.cpp +++ b/Open_Theremin_V3/application.cpp @@ -813,9 +813,12 @@ void Application::calculate_note_bend () void Application::init_parameters () { // init data pot value to avoid 1st position to be taken into account + + param_pot_value = analogRead(REGISTER_SELECT_POT); + old_param_pot_value = param_pot_value; + data_pot_value = analogRead(WAVE_SELECT_POT); old_data_pot_value = data_pot_value; - } void Application::set_parameters ()