klipper-dgus/klippy
functionpointer 2dc20c011d ds18b20: Allow some read errors
Allows a limited number of DS18B20 read failures
before stopping the printer. This is designed to
tolerate spurious read errors, while still stopping
for serious issues.

The printer will stop when the sensor

fails to report a value five times in a row.

Implementation works as follows:
The MCU reports any read errors using a new "fault"
parameter in its answers.
The Python code tracks the number of errors
and triggers the shutdown. This paves the way for
more sophisticated error handling in the future,
as well as an example for other sensors to follow.

Signed-off-by: Lorenzo Pfeifer <Lorenzo.Pfeifer+github@googlemail.com>
2022-06-08 12:39:12 -04:00
..
chelper extruder: Add support for reversing the direction of extruder stepper movement 2022-02-10 13:24:21 -05:00
extras ds18b20: Allow some read errors 2022-06-08 12:39:12 -04:00
kinematics extruder: Verify trapq is unmodified on default SET_PRESSURE_ADVANCE 2022-03-04 13:38:59 -05:00
clocksync.py msgblock: Add clock estimation helper functions 2021-06-09 18:58:35 -04:00
configfile.py configfile: Use Python2's ConfigParser when running on Python2 2021-10-09 19:37:48 -04:00
console.py console: Remove support for PINS command 2021-11-02 12:45:11 -04:00
gcode.py gcode: Handle M117 and M118 commands that start with a special character 2022-01-18 11:34:40 -05:00
klippy.py klippy: Minor changes to message protocol error 2022-05-06 21:06:13 -04:00
mathutil.py mathutil: Disable queuelogger in background_coordinate_descent() 2019-12-17 09:51:45 -05:00
mcu.py mcu: Add checks to ensure pin max_duration doesn't overflow 32bit counter 2021-11-22 10:11:09 -05:00
msgproto.py spi_flash: Make SD updates more tolerant of flaky boards 2021-07-20 18:05:05 -04:00
parsedump.py build: Request python2 for all directly executed python binaries 2017-06-27 20:26:02 -04:00
pins.py pins: Improve pin description checks 2022-05-09 16:33:46 -04:00
queuelogger.py klippy: Add Python2 module wrappers and use Python3 module naming 2021-10-04 14:36:08 -04:00
reactor.py klippy: Add Python2 module wrappers and use Python3 module naming 2021-10-04 14:36:08 -04:00
serialhdl.py serialhdl: Use regular str() type for stats on Python2 2021-10-31 13:52:31 -04:00
stepper.py extruder: Verify trapq is unmodified on default SET_PRESSURE_ADVANCE 2022-03-04 13:38:59 -05:00
toolhead.py toolhead: Fix toolhead stop on SET_VELOCITY_LIMIT (#5053) 2021-12-30 18:56:24 -05:00
util.py util: Use regular str() type in get_git_version() on Python2 2021-10-31 13:52:31 -04:00
webhooks.py webhooks: Convert to Python3 string encoding 2021-10-04 14:36:08 -04:00