From 2057ba80823ced3737fdb1ba52db53002c64a741 Mon Sep 17 00:00:00 2001 From: elmo128 <60213508+elmo128@users.noreply.github.com> Date: Mon, 18 Sep 2023 13:11:04 +0200 Subject: [PATCH] bugfix --- src/NerdMinerV2.ino.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NerdMinerV2.ino.cpp b/src/NerdMinerV2.ino.cpp index 8144dcf..9904d15 100644 --- a/src/NerdMinerV2.ino.cpp +++ b/src/NerdMinerV2.ino.cpp @@ -58,7 +58,7 @@ void setup() button1.attachClick(switchToNextScreen); button1.attachDoubleClick(alternateScreenRotation); button1.attachLongPressStart(reset_configuration); - if(button1.getNumberClicks() == 3) alternateScreenState(); + button1.attachMultiClick(alternateScreenState); #endif #if defined(PIN_BUTTON_1) && defined(PIN_BUTTON_2) //Button 1 of two button device