aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/anduril/sunset-timer.c6
-rw-r--r--spaghetti-monster/fsm-ramping.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/spaghetti-monster/anduril/sunset-timer.c b/spaghetti-monster/anduril/sunset-timer.c
index 7340ff1..55da935 100644
--- a/spaghetti-monster/anduril/sunset-timer.c
+++ b/spaghetti-monster/anduril/sunset-timer.c
@@ -24,7 +24,7 @@
uint8_t sunset_timer_state(Event event, uint16_t arg) {
- // blink on start
+ // reset on start
if (event == EV_enter_state) {
sunset_timer = 0;
sunset_ticks = 0;
@@ -42,7 +42,7 @@ uint8_t sunset_timer_state(Event event, uint16_t arg) {
else if (event == EV_click4_hold) {
if (0 == (arg % TICKS_PER_SECOND)) {
if (sunset_timer < (255 - SUNSET_TIMER_UNIT)) {
- // add 30m to the timer
+ // add a few minutes to the timer
sunset_timer += SUNSET_TIMER_UNIT;
sunset_timer_peak = sunset_timer; // reset ceiling
sunset_ticks = 0; // reset phase
@@ -57,7 +57,7 @@ uint8_t sunset_timer_state(Event event, uint16_t arg) {
}
return MISCHIEF_MANAGED;
}
- // tick: step down (maybe) or off (maybe)
+ // tick: count down until time expires
else if (event == EV_tick) {
// time passed
sunset_ticks ++;
diff --git a/spaghetti-monster/fsm-ramping.c b/spaghetti-monster/fsm-ramping.c
index c3ad8b4..6c6d0cb 100644
--- a/spaghetti-monster/fsm-ramping.c
+++ b/spaghetti-monster/fsm-ramping.c
@@ -200,6 +200,9 @@ void gradual_tick() {
{
actual_level = gt + 1;
}
+ #ifdef USE_DYNAMIC_UNDERCLOCKING
+ auto_clock_speed();
+ #endif
}
#endif