2021-07-01 21:19:51 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
#define LOG_PUMP_AND_DOWNLOADMODE "Download mode, ignoring pump request"
|
|
|
|
#define LOG_PUMP_AND_DOWNLOADMODE_CODE 2
|
|
|
|
|
2021-08-23 00:58:37 +02:00
|
|
|
//msg is dynamic defined
|
|
|
|
#define LOG_PUMP_INEFFECTIVE -4
|
|
|
|
|
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-07-01 23:09:02 +02:00
|
|
|
#define LOG_MISSING_PUMP -4
|