diff options
| author | Selene ToyKeeper | 2017-09-26 16:47:44 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-09-26 16:47:44 -0600 |
| commit | 45e3a7758046536754f073c42ac27dc737e69fab (patch) | |
| tree | 189c6c5e42b34d89e80ca4d13d78af4680043fd1 /spaghetti-monster/fsm-ramping.c | |
| parent | Fixed moon in lockout state. Was too low since the MCU wasn't underclocked. (diff) | |
| download | anduril-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.c | 3 |
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 |
