fix water error code

This commit is contained in:
Empire 2023-02-10 22:23:04 +01:00
parent 68386ce02f
commit 2b6d766492
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,5 @@
#pragma once #ifndef LOG_DEFINES_H
#define LOG_DEFINES_H
#define LOG_LEVEL_ERROR 0 #define LOG_LEVEL_ERROR 0
#define LOG_LEVEL_WARN 1 #define LOG_LEVEL_WARN 1
@ -30,7 +31,7 @@
#define LOG_PUMP_AND_DOWNLOADMODE_CODE 2 #define LOG_PUMP_AND_DOWNLOADMODE_CODE 2
#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 -7 #define LOG_VERY_COLD_WATER_CODE -7
//msg is dynamic defined //msg is dynamic defined
#define LOG_PUMP_INEFFECTIVE -4 #define LOG_PUMP_INEFFECTIVE -4
@ -41,3 +42,4 @@
#define LOG_SLEEP_CYCLE 102 #define LOG_SLEEP_CYCLE 102
#define LOG_MISSING_PUMP -4 #define LOG_MISSING_PUMP -4
#define LOG_BOOT_ERROR_DETECTION 10000 #define LOG_BOOT_ERROR_DETECTION 10000
#endif

View File

@ -1105,7 +1105,7 @@ void plantcontrol()
} }
} }
else{ else{
log(LOG_LEVEL_ERROR, LOG_PUMP_BUTNOTANK_MESSAGE, LOG_PUMP_BUTNOTANK_CODE); log(LOG_LEVEL_ERROR, LOG_VERY_COLD_WATER, LOG_VERY_COLD_WATER_CODE);
pumpToRun = -1; pumpToRun = -1;
} }
} }