mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-03-11 05:16:59 -06:00
aht10: Add AHT10 as alias for AHT1X for backwards compatibility
Signed-off-by: Lev Voronov <minicx@disroot.org>
This commit is contained in:
parent
4e3a16d17b
commit
9ac90f8752
1 changed files with 4 additions and 0 deletions
|
|
@ -194,6 +194,10 @@ class AHT3x(AHTBase):
|
|||
def load_config(config):
|
||||
# Register sensor
|
||||
pheater = config.get_printer().lookup_object("heaters")
|
||||
|
||||
# Backwards compatibility alias
|
||||
pheater.add_sensor_factory("AHT10", AHT1x)
|
||||
|
||||
pheater.add_sensor_factory("AHT1X", AHT1x)
|
||||
pheater.add_sensor_factory("AHT2X", AHT2x)
|
||||
pheater.add_sensor_factory("AHT3X", AHT3x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue