From 5080d425b1a983927c2ad3df37abd2f2bb797508 Mon Sep 17 00:00:00 2001 From: x03daop Date: Tue, 3 Nov 2015 15:00:45 +0100 Subject: [PATCH] Script execution --- script/local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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