From 8d87345d456081f18f0f0d23105c9d334daeb424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sun, 17 Dec 2017 18:40:44 +0100 Subject: [PATCH] Make up --- code/espurna/sensors/EmonADS1X15Sensor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/espurna/sensors/EmonADS1X15Sensor.h b/code/espurna/sensors/EmonADS1X15Sensor.h index 76a8ccc8..65ac4e55 100644 --- a/code/espurna/sensors/EmonADS1X15Sensor.h +++ b/code/espurna/sensors/EmonADS1X15Sensor.h @@ -14,6 +14,8 @@ #include #endif +#define ADS1X15_CHANNELS (4) + #define ADS1015_CONVERSIONDELAY (1) #define ADS1115_CONVERSIONDELAY (8) @@ -88,7 +90,6 @@ #define ADS1X15_REG_CONFIG_CQUE_4CONV (0x0002) // Assert ALERT/RDY after four conversions #define ADS1X15_REG_CONFIG_CQUE_NONE (0x0003) // Disable the comparator and put ALERT/RDY in high state (default) -#define ADS1X15_CHANNELS 4 class EmonADS1X15Sensor : public EmonSensor {