From 60acc9b1722d8e2b92480f45bc25bcdcaaef9558 Mon Sep 17 00:00:00 2001 From: boerge1 Date: Fri, 13 Oct 2023 14:14:01 +0200 Subject: [PATCH] Issue_117: Support potentiometer for setting the volume --- src/poti.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/poti.cpp b/src/poti.cpp index 590ba90..90897d6 100644 --- a/src/poti.cpp +++ b/src/poti.cpp @@ -23,12 +23,10 @@ Poti::Poti(const Settings& settings, Mp3& mp3) commandRaw Poti::getCommandRaw() { const uint8_t volume = map( analogRead(potiPin), 0, maxLevel, settings.minVolume, settings.maxVolume); - LOG(button_log, s_debug, F("poti volume: "), volume); if (volume != mp3.getVolume()) { - LOG(button_log, s_debug, F("start setVolume")); + LOG(button_log, s_debug, F("poti volume: "), volume); mp3.setVolume(volume); - LOG(button_log, s_debug, F("finished setVolume")); } return commandRaw::none;