From d2ab759ad3d7c7c9d8ebec3bc2ce48185c8987c9 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Wed, 2 Mar 2022 11:34:19 +0100 Subject: [PATCH] Default GpioButton to active high, which is the more common default (and also used to be the default in here, but only changed after fixing active high/low being swapped in https://github.com/nymea/nymea-gpio/pull/7 --- libnymea-gpio/gpiobutton.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnymea-gpio/gpiobutton.h b/libnymea-gpio/gpiobutton.h index 8270383..d4b6739 100644 --- a/libnymea-gpio/gpiobutton.h +++ b/libnymea-gpio/gpiobutton.h @@ -59,7 +59,7 @@ public: private: int m_gpioNumber; - bool m_activeLow = true; + bool m_activeLow = false; bool m_repeateLongPressed = false; int m_longPressedTimeout = 250; QString m_name;