klipper-dgus/src/linux
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
..
Kconfig linux: userspace GPIO control 2020-05-17 22:17:15 -04:00
Makefile linux: Use Unix signals to notify when a timer is pending 2021-11-02 13:27:51 -04:00
analog.c linux: Ability to use multiple GPIO chips (#2935) 2020-06-06 12:47:11 -04:00
console.c linux: Use Unix signals to notify when a timer is pending 2021-11-02 13:27:51 -04:00
gpio.c Revert "linux: Raise an error if configuring a pullup when that is not supported" 2021-05-27 11:33:24 -04:00
gpio.h linux: Disable hardware pwm when it is set to zero 2020-07-20 22:18:28 -04:00
hard_pwm.c linux: Disable hardware pwm when it is set to zero 2020-07-20 22:18:28 -04:00
i2c.c linux: Update i2c.c (#5295) 2022-03-14 14:24:27 -04:00
internal.h linux: Use Unix signals to notify when a timer is pending 2021-11-02 13:27:51 -04:00
main.c command: Always pass a string to the DECL_CONSTANT() macro 2019-03-17 19:38:18 -04:00
pca9685.c pca9685: Use move queue for pwm updates 2020-12-04 16:10:13 -05:00
sensor_ds18b20.c ds18b20: Allow some read errors 2022-06-08 12:39:12 -04:00
spidev.c linux: Support spidev4 through spidev7 2021-09-15 11:06:10 -04:00
timer.c linux: Use Unix signals to notify when a timer is pending 2021-11-02 13:27:51 -04:00
watchdog.c linux: Rework timer_check_periodic() to use ticks 2021-04-19 09:50:40 -04:00