Handle unrealistic water values
This commit is contained in:
parent
6cb446735d
commit
c6ddfea44b
@ -80,7 +80,7 @@
|
|||||||
/** \addtogroup Configuration
|
/** \addtogroup Configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define FIRMWARE_VERSION "2.7 HW0.10b"
|
#define FIRMWARE_VERSION "2.71 HW0.10b"
|
||||||
|
|
||||||
#define TIMED_LIGHT_PIN CUSTOM1_PIN5
|
#define TIMED_LIGHT_PIN CUSTOM1_PIN5
|
||||||
#define FLOWMETER_PIN CUSTOM1_PIN1
|
#define FLOWMETER_PIN CUSTOM1_PIN1
|
||||||
|
@ -33,6 +33,9 @@
|
|||||||
#define LOG_VERY_COLD_WATER "Water potentially frozen, ignoring pump request"
|
#define LOG_VERY_COLD_WATER "Water potentially frozen, ignoring pump request"
|
||||||
#define LOG_VERY_COLD_WATER_CODE -7
|
#define LOG_VERY_COLD_WATER_CODE -7
|
||||||
|
|
||||||
|
#define LOG_PUMP_FULLTANK_MESSAGE "Water Sensor distance unrealistic"
|
||||||
|
#define LOG_PUMP_FULLTANK_CODE 3
|
||||||
|
|
||||||
//msg is dynamic defined
|
//msg is dynamic defined
|
||||||
#define LOG_PUMP_INEFFECTIVE -4
|
#define LOG_PUMP_INEFFECTIVE -4
|
||||||
#define LOG_PUMP_STARTED_CODE 10
|
#define LOG_PUMP_STARTED_CODE 10
|
||||||
|
@ -1142,6 +1142,10 @@ bool isLowLight = (mSolarVoltage <= SOLAR_CHARGE_MAX_VOLTAGE);
|
|||||||
{
|
{
|
||||||
//surface of water is still nearer the sensor than required to cover the pumps
|
//surface of water is still nearer the sensor than required to cover the pumps
|
||||||
hasWater = waterRawSensor.getAverage() < waterLevelMin.get();
|
hasWater = waterRawSensor.getAverage() < waterLevelMin.get();
|
||||||
|
if (waterRawSensor.getAverage() > waterLevelMax.get()) {
|
||||||
|
log(LOG_LEVEL_ERROR, LOG_PUMP_FULLTANK_MESSAGE, LOG_PUMP_FULLTANK_CODE);
|
||||||
|
hasWater = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME no water warning message
|
// FIXME no water warning message
|
||||||
|
Loading…
Reference in New Issue
Block a user