From 868d3d912e891d222f70ea837811f5c1d50428b5 Mon Sep 17 00:00:00 2001 From: Ollo Date: Sun, 6 Mar 2022 13:47:21 +0100 Subject: [PATCH] Update the analog maximum according datasheet --- esp32/include/ControllerConfiguration.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esp32/include/ControllerConfiguration.h b/esp32/include/ControllerConfiguration.h index f3b4020..17077d6 100644 --- a/esp32/include/ControllerConfiguration.h +++ b/esp32/include/ControllerConfiguration.h @@ -33,7 +33,7 @@ #define I2C1_SDA GPIO_NUM_34 /**< GPIO 34 - I2C */ #define I2C1_SCL GPIO_NUM_35 /**< GPIO 35 - I2C */ -#define FIRMWARE_VERSION "sw 2.2 hw 0.10b" +#define FIRMWARE_VERSION "sw2.201 hw0.10b" #define TIMED_LIGHT_PIN CUSTOM1_PIN5 #define FLOWMETER_PIN CUSTOM1_PIN1 @@ -44,7 +44,7 @@ #define MOIST_SENSOR_MAX_FRQ 10000 // 10kHz (as never more then 3000 was measured) #define MOIST_SENSOR_MIN_FRQ 1000 // 1kHz (500Hz margin) -#define ANALOG_SENSOR_MAX_MV 1000 +#define ANALOG_SENSOR_MAX_MV 4095 /**< Maximum according https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/adc.html */ #define ANALOG_SENSOR_MIN_MV 100 #define SOLAR_VOLT_FACTOR 11