From 45e3a7758046536754f073c42ac27dc737e69fab Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 26 Sep 2017 16:47:44 -0600 Subject: Added dynamic underclocking to FSM, instead of doing it manually in Anduril. --- spaghetti-monster/fsm-ramping.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spaghetti-monster/fsm-ramping.c') 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 -- cgit v1.2.3