inputs: circadianrhythm: improve logging, fix build error

This commit is contained in:
Torrie Fischer 2023-12-11 07:56:00 +01:00
parent 7b0434e3df
commit 63397dc39a

View File

@ -1,5 +1,6 @@
#pragma once
#include <Figments.h>
#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{};
}