aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.c
diff options
context:
space:
mode:
authorGabriel Hart2021-10-29 12:51:10 -0500
committerGabriel Hart2021-10-29 12:51:10 -0500
commit78417e78ef4dbeed7a9a3c0b2cad81341685dca0 (patch)
tree39db7a2d52b8e7cd9bafa8e5557df24f46049507 /spaghetti-monster/fsm-ramping.c
parentAdd thefreeman's DAC linear driver (beta); also update Sofirn bilds to use th... (diff)
parentClarified Ramp->2C behavior a bit more. (diff)
downloadanduril-78417e78ef4dbeed7a9a3c0b2cad81341685dca0.tar.gz
anduril-78417e78ef4dbeed7a9a3c0b2cad81341685dca0.tar.bz2
anduril-78417e78ef4dbeed7a9a3c0b2cad81341685dca0.zip
Merge TKs changes through her commit 628
Diffstat (limited to 'spaghetti-monster/fsm-ramping.c')
-rw-r--r--spaghetti-monster/fsm-ramping.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.c b/spaghetti-monster/fsm-ramping.c
index e8fcde7..05c2e0e 100644
--- a/spaghetti-monster/fsm-ramping.c
+++ b/spaghetti-monster/fsm-ramping.c
@@ -267,7 +267,9 @@ void gradual_tick() {
)
{
//actual_level = gt + 1;
+ uint8_t orig = gradual_target;
set_level(gt + 1);
+ gradual_target = orig;
}
// is handled in set_level()
//#ifdef USE_TINT_RAMPING