aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.h
diff options
context:
space:
mode:
authorfunctionpointer <suspendfunction@gmail.com>2022-06-05 14:26:51 +0200
committerKevin O'Connor <kevin@koconnor.net>2022-06-08 12:39:12 -0400
commit2dc20c011dc0ce7f798ca543b96e93e5014b407b (patch)
tree2c2d337bdcc99cc163d788df0aa35db7db70c451 /src/command.h
parentb0da191bee873d51590664e261a767a06391df13 (diff)
downloadkutter-2dc20c011dc0ce7f798ca543b96e93e5014b407b.tar.gz
kutter-2dc20c011dc0ce7f798ca543b96e93e5014b407b.tar.xz
kutter-2dc20c011dc0ce7f798ca543b96e93e5014b407b.zip
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>
Diffstat (limited to 'src/command.h')
0 files changed, 0 insertions, 0 deletions