extracte time stuff, started logger

This commit is contained in:
Your Name
2021-07-01 21:19:51 +02:00
parent a1f2388c7f
commit f1d55ed603
5 changed files with 87 additions and 35 deletions

View File

@@ -0,0 +1,14 @@
#pragma once
#define LOG_LEVEL_ERROR 0
#define LOG_LEVEL_WARN 1
#define LOG_LEVEL_INFO 2
#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

View File

@@ -0,0 +1,4 @@
#pragma once
long getCurrentTime(void);
int getCurrentHour(void);