mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-16 05:09:56 +01:00
aht10: Add AHT10 as alias for AHT1X for backwards compatibility
Signed-off-by: Lev Voronov <minicx@disroot.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user