Files
dev/script/test/BugSetCache.py
2018-01-19 10:56:53 +01:00

15 lines
306 B
Python
Executable File

class ScalarDevice(RegisterBase):
def doRead(self):
return self.val if hasattr(self, 'val') else 0.0
def doWrite(self, val):
self.val = val
def test(self):
self.setCache(1.0, None)
add_device(ScalarDevice("scan_start"), True)
scan_start.test()