diff --git a/script/local.py b/script/local.py index b497277c..4acf4dac 100644 --- a/script/local.py +++ b/script/local.py @@ -212,6 +212,6 @@ def adjust_sensors(): if (SENSORS is not None) and isinstance(SENSORS,list): # Move integration to end for dev in [Integration, AngleDistribution]: - if dev in SENSORS: - SENSORS=SENSORS+[SENSORS.pop(SENSORS.index(dev))] + if dev.getName() in SENSORS: + SENSORS=SENSORS+[SENSORS.pop(SENSORS.index(dev.getName()))] \ No newline at end of file