diff options
author | functionpointer <suspendfunction@gmail.com> | 2022-06-09 00:05:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-08 18:05:27 -0400 |
commit | 33ecc6d62ee15afd921cce9ee37ca551f5d0b0ce (patch) | |
tree | 2bcdcc1b97ab3e105df24b40fd0fd348344d0eb4 /klippy/extras | |
parent | d61d3ade23c493b4435ca6b3a4635471a26efe15 (diff) | |
download | kutter-33ecc6d62ee15afd921cce9ee37ca551f5d0b0ce.tar.gz kutter-33ecc6d62ee15afd921cce9ee37ca551f5d0b0ce.tar.xz kutter-33ecc6d62ee15afd921cce9ee37ca551f5d0b0ce.zip |
ds18b20: fix string conversion error on startup (#5559)
Signed-off-by: Lorenzo Pfeifer <Lorenzo.Pfeifer+github@googlemail.com>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/ds18b20.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/klippy/extras/ds18b20.py b/klippy/extras/ds18b20.py index 9e36dfe5..37b30104 100644 --- a/klippy/extras/ds18b20.py +++ b/klippy/extras/ds18b20.py @@ -32,8 +32,9 @@ class DS18B20: def _build_config(self): sid = "".join(["%02x" % (x,) for x in self.sensor_id]) - self._mcu.add_config_cmd("config_ds18b20 oid=%d serial=%s" - % (self.oid, sid, DS18_MAX_CONSECUTIVE_ERRORS)) + self._mcu.add_config_cmd( + "config_ds18b20 oid=%d serial=%s max_error_count=%d" + % (self.oid, sid, DS18_MAX_CONSECUTIVE_ERRORS)) clock = self._mcu.get_query_slot(self.oid) self._report_clock = self._mcu.seconds_to_clock(self.report_time) |