Skip to content

Commit

Permalink
fixed too-slow thermal regulation bug introduced in d4sv2-tintramp br…
Browse files Browse the repository at this point in the history
…anch

(2021-09-10 r619.1.11)
The gradual_target var was getting clobbered and causing thermal regulation to stop
until the next thermal warning event, every time it reached a new ramp step.
So... save/restore it to prevent it from getting clobbered.
  • Loading branch information
ToyKeeper committed Oct 25, 2021
1 parent e3aeb18 commit cb735ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spaghetti-monster/fsm-ramping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb735ab

Please sign in to comment.