2023-02-10 22:23:04 +01:00
|
|
|
#ifndef LOG_DEFINES_H
|
|
|
|
#define LOG_DEFINES_H
|
2021-07-01 21:19:51 +02:00
|
|
|
|
|
|
|
#define LOG_LEVEL_ERROR 0
|
|
|
|
#define LOG_LEVEL_WARN 1
|
|
|
|
#define LOG_LEVEL_INFO 2
|
2021-07-01 22:06:50 +02:00
|
|
|
#define LOG_LEVEL_DEBUG 3
|
2021-07-01 21:19:51 +02:00
|
|
|
|
2021-10-26 20:46:40 +02:00
|
|
|
|
2021-07-01 21:19:51 +02:00
|
|
|
#define LOG_TANKSENSOR_FAIL_DETECT "Failed to detect and initialize distance sensor!"
|
|
|
|
#define LOG_TANKSENSOR_FAIL_DETECT_CODE -1
|
|
|
|
|
|
|
|
#define LOG_BACKUP_SUCCESSFUL "Backup sucessful"
|
|
|
|
#define LOG_BACKUP_SUCCESSFUL_CODE 1
|
|
|
|
|
|
|
|
#define LOG_BACKUP_FAILED "Backup error"
|
|
|
|
#define LOG_BACKUP_FAILED_CODE -2
|
2021-07-01 22:06:50 +02:00
|
|
|
|
|
|
|
#define LOG_PUMP_BUTNOTANK_MESSAGE "Want to pump but no water"
|
|
|
|
#define LOG_PUMP_BUTNOTANK_CODE -3
|
|
|
|
|
2021-10-06 21:24:34 +02:00
|
|
|
#define LOG_HARDWARECOUNTER_ERROR_MESSAGE "PCNR returned error"
|
|
|
|
#define LOG_HARDWARECOUNTER_ERROR_CODE -4
|
|
|
|
|
2022-02-12 05:26:54 +01:00
|
|
|
#define LOG_SENSORMODE_UNKNOWN "Unknown sensor mode requested"
|
|
|
|
#define LOG_SENSORMODE_UNKNOWN_CODE -5
|
|
|
|
|
2022-03-05 10:31:43 +01:00
|
|
|
#define LOG_SENSOR_MISSING -6
|
|
|
|
|
2021-07-01 22:06:50 +02:00
|
|
|
#define LOG_PUMP_AND_DOWNLOADMODE "Download mode, ignoring pump request"
|
|
|
|
#define LOG_PUMP_AND_DOWNLOADMODE_CODE 2
|
|
|
|
|
2022-12-20 00:04:57 +01:00
|
|
|
#define LOG_VERY_COLD_WATER "Water potentially frozen, ignoring pump request"
|
2023-02-10 22:23:04 +01:00
|
|
|
#define LOG_VERY_COLD_WATER_CODE -7
|
2022-12-20 00:04:57 +01:00
|
|
|
|
2021-08-23 00:58:37 +02:00
|
|
|
//msg is dynamic defined
|
|
|
|
#define LOG_PUMP_INEFFECTIVE -4
|
2021-10-26 20:46:40 +02:00
|
|
|
#define LOG_PUMP_STARTED_CODE 10
|
2021-07-01 22:06:50 +02:00
|
|
|
#define LOG_DEBUG_CODE 1001
|
2021-10-06 20:05:09 +02:00
|
|
|
#define LOG_SLEEP_NIGHT 100
|
|
|
|
#define LOG_SLEEP_DAY 101
|
2021-10-27 01:42:01 +02:00
|
|
|
#define LOG_SLEEP_CYCLE 102
|
2021-12-05 02:36:03 +01:00
|
|
|
#define LOG_MISSING_PUMP -4
|
2022-08-25 18:40:41 +02:00
|
|
|
#define LOG_BOOT_ERROR_DETECTION 10000
|
2023-03-10 20:06:05 +01:00
|
|
|
#define LOG_SOLAR_CHARGER_MISSING 300
|
|
|
|
#endif
|