mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-24 08:38:34 -07:00
sht3x: fix exception type
Since 0bdee6b query commands return printer.command_error
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
parent
8b58aa1302
commit
b3ef9b4cb9
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class SHT3X:
|
|||
self.reactor = self.printer.get_reactor()
|
||||
self.i2c = bus.MCU_I2C_from_config(
|
||||
config, default_addr=SHT3X_I2C_ADDR, default_speed=100000)
|
||||
self._error = self.i2c.get_mcu().error
|
||||
self._error = self.printer.command_error
|
||||
self.report_time = config.getint('sht3x_report_time', 1, minval=1)
|
||||
self.deviceId = config.get('sensor_type')
|
||||
self.temp = self.min_temp = self.max_temp = self.humidity = 0.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue