inputs: circadianrhythm: improve logging, fix build error
This commit is contained in:
parent
7b0434e3df
commit
63397dc39a
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <Figments.h>
|
#include <Figments.h>
|
||||||
|
#include "../Platform.h"
|
||||||
|
|
||||||
struct ScheduleEntry {
|
struct ScheduleEntry {
|
||||||
uint8_t hour;
|
uint8_t hour;
|
||||||
@ -83,7 +84,9 @@ class CircadianRhythm : public InputSource {
|
|||||||
minute = 0;
|
minute = 0;
|
||||||
}
|
}
|
||||||
Log.notice("Current time: %d:%d", hour, minute);
|
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{};
|
return InputEvent{};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user