diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-03-13 13:13:31 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-03-16 12:49:15 -0400 |
commit | e60779bfe117abdf861f65012d3fdf037b81b46c (patch) | |
tree | 09c672cd6d21d6a5e7687a7964a8f08ebb245690 /klippy/serialhdl.py | |
parent | f66b1ac450d3a33cea66e2f1ea6f81befe0c0e39 (diff) | |
download | kutter-e60779bfe117abdf861f65012d3fdf037b81b46c.tar.gz kutter-e60779bfe117abdf861f65012d3fdf037b81b46c.tar.xz kutter-e60779bfe117abdf861f65012d3fdf037b81b46c.zip |
heater: Force set_pwm of zero when target_temp is zero
Fix a corner case where a residual in the PID could cause a non-zero
pwm request even when the target_temp is zero. (Which could lead to a
firmware "Missed scheduling of next pwm event" shutdown.)
Simplify the logic for suppressing duplicate pwm updates and make sure
a zero target_temp always results in a zero pwm update on the
following set_pwm calculation.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/serialhdl.py')
0 files changed, 0 insertions, 0 deletions