aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-07-31 20:13:42 -0600
committerSelene ToyKeeper2020-07-31 20:13:42 -0600
commit41d2a02a8c1b41a118e24058e4ee5fd36a171e57 (patch)
treee65420ce7bd5bbeb6d73f256214c1cc4c607e6c6 /spaghetti-monster/fsm-ramping.c
parentadded auto-lock function, mostly contributed by SammysHP (diff)
downloadanduril-41d2a02a8c1b41a118e24058e4ee5fd36a171e57.tar.gz
anduril-41d2a02a8c1b41a118e24058e4ee5fd36a171e57.tar.bz2
anduril-41d2a02a8c1b41a118e24058e4ee5fd36a171e57.zip
fixed bug: sunset timer didn't adjust MCU clock speed at low levels,
so the moon level was way too dim and used too much power also fixed some sunset timer comments
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/fsm-ramping.c3
1 files changed, 3 insertions, 0 deletions
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