Actor: Temperature, looks like a bug...
@@ -34,7 +34,7 @@ class Temperature(Actor):
self.temperature = calvinsys.open(self, "io.temperature")
self.timer = calvinsys.open(self, "sys.timer.once", period=period)
- @stateguard(lambda self: calvinsys.can_read(self.temperature) and calvinsys.can_read(self.timer))
+ @stateguard(lambda self: calvinsys.can_read(self.temperature) and calvinsys.can_write(self.timer))
@condition([], ['centigrade'])
def read_measurement(self):
value = calvinsys.read(self.temperature)
