Rework logging
Some checks failed
Test compiling project / test (push) Failing after 1m34s

This commit is contained in:
2025-03-10 23:33:41 +01:00
parent 374b23d99a
commit eeaac9548e
12 changed files with 111 additions and 121 deletions

View File

@@ -1,6 +1,6 @@
#include "leds.h"
#include <Arduino.h>
#include <ArduinoLog.h>
#include <Elog.h>
#include "../tools/tools.h"
extern ActiveErrors active_errors;
@@ -72,7 +72,7 @@ void display_task(void* parameter)
// We have no error, refresh status display and wait half a second
display_percentage(water_data.percentage);
} else {
Log.verbose("Error detected");
logger.log(0, DEBUG, "Error detected");
// We have an error, display error code for 3 seconds and then water level for 3 seconds
if (active_errors.voltage_low) {