From 63397dc39aa28685530d15be72ec01ba4b84f48f Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Mon, 11 Dec 2023 07:56:00 +0100 Subject: [PATCH] inputs: circadianrhythm: improve logging, fix build error --- src/inputs/CircadianRhythm.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/inputs/CircadianRhythm.h b/src/inputs/CircadianRhythm.h index 26456ca..a8b608e 100644 --- a/src/inputs/CircadianRhythm.h +++ b/src/inputs/CircadianRhythm.h @@ -1,5 +1,6 @@ #pragma once #include +#include "../Platform.h" struct ScheduleEntry { uint8_t hour; @@ -83,7 +84,9 @@ class CircadianRhythm : public InputSource { minute = 0; } Log.notice("Current time: %d:%d", hour, minute); - return InputEvent{InputEvent::SetBrightness, brightnessForTime(hour, minute)}; + auto brightness = brightnessForTime(hour, minute); + Log.notice("Adjusting brightness to %d", brightness); + return InputEvent{InputEvent::SetBrightness, brightness}; } return InputEvent{}; }