From 985bcd1c092eac6b1c80e18f41c52876131daa24 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Wed, 12 Feb 2025 08:14:51 +0100 Subject: [PATCH] bring back functionality where displaying various info can be overwritten by adding a display controller class --- include/devices.h | 6 ++--- include/display.h | 62 ++++++++++++++++++++++++++++++----------------- src/esp_clock.cpp | 4 +-- 3 files changed, 45 insertions(+), 27 deletions(-) diff --git a/include/devices.h b/include/devices.h index 562fdad..b4dd440 100644 --- a/include/devices.h +++ b/include/devices.h @@ -80,7 +80,7 @@ namespace Devices { if (strcmp("PRESS", msg) == 0 && !Display::tDisplaySensor.isEnabled()) { Bme::data.readAll(); Display::tDisplaySensor.setIterations(DISPLAY_SENSOR_ITERATIONS); - Display::tDisplaySensor.restart(); + Display::displayTask.activate(Display::tDisplaySensor); }; } }).build() @@ -89,7 +89,7 @@ namespace Devices { Builder