diff options
| author | Selene ToyKeeper | 2020-10-14 23:17:27 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-10-14 23:17:27 -0600 |
| commit | db1c7ef28405c123faaaadb25c8c9b2edeea0d43 (patch) | |
| tree | 80d41bd8e68c8d9eccc759ae21ebd3515a570b4d /spaghetti-monster/fsm-ramping.c | |
| parent | configured K9.3 cfg (mostly), assigned a model number, fixed typo in hwdef (diff) | |
| download | anduril-db1c7ef28405c123faaaadb25c8c9b2edeea0d43.tar.gz anduril-db1c7ef28405c123faaaadb25c8c9b2edeea0d43.tar.bz2 anduril-db1c7ef28405c123faaaadb25c8c9b2edeea0d43.zip | |
got K9.3 2nd LEDs working (and modified FSM to allow this sort of thing)
added a way to include per-model code overrides
added an override mechanism for logic inside set_level()
wrote K9.3's set_level() function
added TINT_RAMP_TOGGLE_ONLY mode for tint ramping
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-ramping.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.c b/spaghetti-monster/fsm-ramping.c index 5ea4a47..16bffe3 100644 --- a/spaghetti-monster/fsm-ramping.c +++ b/spaghetti-monster/fsm-ramping.c @@ -54,6 +54,10 @@ void set_level(uint8_t level) { #endif #endif + #ifdef OVERRIDE_SET_LEVEL + set_level_override(level); + #else + //TCCR0A = PHASE; if (level == 0) { #if PWM_CHANNELS >= 1 @@ -139,6 +143,7 @@ void set_level(uint8_t level) { #endif // ifdef USE_TINT_RAMPING } + #endif // ifdef OVERRIDE_SET_LEVEL #ifdef USE_DYNAMIC_UNDERCLOCKING auto_clock_speed(); #endif |
