From 836ad2f2e9acf617a69cad50baf2b275ac4c16d1 Mon Sep 17 00:00:00 2001 From: biologist79 <57354741+biologist79@users.noreply.github.com> Date: Thu, 17 Jun 2021 21:54:44 +0200 Subject: [PATCH] Fixing floating HP_DETECT --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index af5999a..7908820 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4744,7 +4744,7 @@ void setup() { } #ifdef HEADPHONE_ADJUST_ENABLE - pinMode(HP_DETECT, INPUT); + pinMode(HP_DETECT, INPUT_PULLUP); headphoneLastDetectionState = digitalReadFromAll(HP_DETECT); #endif