aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-09-26 16:47:44 -0600
committerSelene ToyKeeper2017-09-26 16:47:44 -0600
commit45e3a7758046536754f073c42ac27dc737e69fab (patch)
tree189c6c5e42b34d89e80ca4d13d78af4680043fd1 /spaghetti-monster/fsm-ramping.c
parentFixed moon in lockout state. Was too low since the MCU wasn't underclocked. (diff)
downloadanduril-45e3a7758046536754f073c42ac27dc737e69fab.tar.gz
anduril-45e3a7758046536754f073c42ac27dc737e69fab.tar.bz2
anduril-45e3a7758046536754f073c42ac27dc737e69fab.zip
Added dynamic underclocking to FSM, instead of doing it manually in Anduril.
Diffstat (limited to 'spaghetti-monster/fsm-ramping.c')
-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 cc5f486..11e56a5 100644
--- a/spaghetti-monster/fsm-ramping.c
+++ b/spaghetti-monster/fsm-ramping.c
@@ -57,6 +57,9 @@ void set_level(uint8_t level) {
PWM4_LVL = pgm_read_byte(pwm4_levels + level);
#endif
}
+ #ifdef USE_DYNAMIC_UNDERCLOCKING
+ auto_clock_speed();
+ #endif
}
#ifdef USE_SET_LEVEL_GRADUALLY