diff --git a/esp32/include/LogDefines.h b/esp32/include/LogDefines.h index 4d3b894..b7d4ada 100644 --- a/esp32/include/LogDefines.h +++ b/esp32/include/LogDefines.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef LOG_DEFINES_H +#define LOG_DEFINES_H #define LOG_LEVEL_ERROR 0 #define LOG_LEVEL_WARN 1 @@ -30,7 +31,7 @@ #define LOG_PUMP_AND_DOWNLOADMODE_CODE 2 #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 #define LOG_PUMP_INEFFECTIVE -4 @@ -40,4 +41,5 @@ #define LOG_SLEEP_DAY 101 #define LOG_SLEEP_CYCLE 102 #define LOG_MISSING_PUMP -4 -#define LOG_BOOT_ERROR_DETECTION 10000 \ No newline at end of file +#define LOG_BOOT_ERROR_DETECTION 10000 +#endif \ No newline at end of file diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index 7813167..fe5e151 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -1105,7 +1105,7 @@ void plantcontrol() } } 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; } }