From a58273028b701894fa7e4df2b85486631b454d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sun, 4 Mar 2018 11:52:12 +0100 Subject: [PATCH] Fix inline documentation for Sonoff 4CH Pro button modes (#551) --- code/espurna/config/hardware.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 33b7e459..c4b9dcd3 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -503,12 +503,14 @@ // and disables any possibly harmful combination with S6 set to 0. // If you are sure you will only use S6 to 1 you can comment the // BUTTON1_LNGCLICK and BUTTON1_LNGLNGCLICK options below to recover the - // AP mode and factory reset functionalities. + // reset mode and factory reset functionalities, or link other actions like + // AP mode in the commented line below. #define BUTTON1_PRESS BUTTON_MODE_TOGGLE #define BUTTON1_CLICK BUTTON_MODE_NONE #define BUTTON1_DBLCLICK BUTTON_MODE_NONE #define BUTTON1_LNGCLICK BUTTON_MODE_NONE + //#define BUTTON1_LNGCLICK BUTTON_MODE_AP #define BUTTON1_LNGLNGCLICK BUTTON_MODE_NONE #define BUTTON2_PRESS BUTTON_MODE_TOGGLE #define BUTTON2_CLICK BUTTON_MODE_NONE