From e7a8c703536967c84c240f121289283ff5f09cb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 27 Mar 2017 23:28:01 +0200 Subject: [PATCH] Fix SEL pin definition in ESPurna board --- code/espurna/config/sensors.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/espurna/config/sensors.h b/code/espurna/config/sensors.h index 546ad327..6d1d570f 100644 --- a/code/espurna/config/sensors.h +++ b/code/espurna/config/sensors.h @@ -96,9 +96,14 @@ // Enabled by default when selecting SONOFF_POW hardware //-------------------------------------------------------------------------------- -#define POW_SEL_PIN 5 +#ifdef ESPURNA_H + #define POW_SEL_PIN 2 +#else + #define POW_SEL_PIN 5 +#endif #define POW_CF1_PIN 13 #define POW_CF_PIN 14 + #define POW_USE_INTERRUPTS 1 #define POW_SEL_CURRENT HIGH #define POW_CURRENT_R 0.001