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