From 8f5896378fd4e3e9c537d9263836a422f8eb04ea Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Mon, 29 Oct 2018 11:55:50 +0100 Subject: [PATCH] Script execution --- script/device/Pixel.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/device/Pixel.py b/script/device/Pixel.py index dfcd170..1babbf0 100644 --- a/script/device/Pixel.py +++ b/script/device/Pixel.py @@ -55,11 +55,12 @@ class Pixel(DeviceBase, Readable): def get_count_id(self): ret = caget (self.prefix + ":FNUM", 'i') - setCache(ret, None) + self.setCache(ret, None) + return ret def set_count_id(self, val): caput (self.prefix + ":FNUM", int(val)) - setCache(ret, int(val)) + self.setCache(int(val), None) def get_expose(self): return caget (self.prefix + ":EXPOSE", 'd') / 1000.0