From f4528e40e9ad7c0cb46a0e4e54efcdc41ef663d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 28 Aug 2017 15:37:44 +0200 Subject: [PATCH] Updated EmonLiteESP and NoFUSS libraries --- code/espurna/config/sensors.h | 2 -- code/espurna/emon.ino | 1 - code/platformio.ini | 4 ++-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/code/espurna/config/sensors.h b/code/espurna/config/sensors.h index ae66b7e0..ceff4ff3 100644 --- a/code/espurna/config/sensors.h +++ b/code/espurna/config/sensors.h @@ -85,7 +85,6 @@ #define EMON_CURRENT_PIN 0 #define EMON_ADC_BITS 10 #define EMON_REFERENCE_VOLTAGE 1.0 - #define EMON_CURRENT_PRECISION 1 #define EMON_CURRENT_OFFSET 0.25 #if EMON_SUPPORT #undef ADC_VCC_ENABLED @@ -97,7 +96,6 @@ #define EMON_ADC121_ADDRESS 0x50 #define EMON_ADC_BITS 12 #define EMON_REFERENCE_VOLTAGE 3.3 - #define EMON_CURRENT_PRECISION 2 #define EMON_CURRENT_OFFSET 0.10 #endif diff --git a/code/espurna/emon.ino b/code/espurna/emon.ino index 19938272..160e698b 100644 --- a/code/espurna/emon.ino +++ b/code/espurna/emon.ino @@ -94,7 +94,6 @@ void powerMonitorSetup() { EMON_REFERENCE_VOLTAGE, getSetting("emonRatio", EMON_CURRENT_RATIO).toFloat() ); - emon.setPrecision(EMON_CURRENT_PRECISION); #if EMON_PROVIDER == EMON_ADC121_PROVIDER uint8_t buffer[2]; diff --git a/code/platformio.ini b/code/platformio.ini index 9d2a8fa8..e63fdefd 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -25,8 +25,8 @@ lib_deps = https://bitbucket.org/xoseperez/justwifi.git#1.1.4 https://bitbucket.org/xoseperez/hlw8012.git#1.0.1 https://bitbucket.org/xoseperez/fauxmoesp.git#2.1.1 - https://bitbucket.org/xoseperez/nofuss.git#0.2.2 - https://bitbucket.org/xoseperez/emonliteesp.git#0.1.2 + https://bitbucket.org/xoseperez/nofuss.git#0.2.4 + https://bitbucket.org/xoseperez/emonliteesp.git#0.2.0 https://bitbucket.org/xoseperez/debounceevent.git#2.0.1 https://github.com/xoseperez/my9291#2.0.0 https://github.com/xoseperez/RemoteSwitch-arduino-library.git