From c63188b497c83e46a9b978ee9e9a1c351def544f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Fri, 2 Mar 2018 09:29:53 +0100 Subject: [PATCH] Load PZEM004T library --- 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 2fb124d6..9a925998 100644 --- a/code/espurna/config/sensors.h +++ b/code/espurna/config/sensors.h @@ -407,7 +407,7 @@ //------------------------------------------------------------------------------ #ifndef PZEM004T_SUPPORT -#define PZEM004T_SUPPORT 1 +#define PZEM004T_SUPPORT 0 #endif #ifndef PZEM004T_USE_SOFT @@ -678,6 +678,11 @@ PROGMEM const char* const magnitude_units[] = { #include "../sensors/PMSX003Sensor.h" #endif +#if PZEM004T_SUPPORT + #include + #include "../sensors/PZEM004TSensor.h" +#endif + #if SI7021_SUPPORT #include "../sensors/SI7021Sensor.h" #endif