Forgot an assignment

This commit is contained in:
Fabio Manganiello 2018-04-30 01:43:23 +02:00
parent c0ef9e2373
commit b8cba8ec0c

View file

@ -39,6 +39,7 @@ class SensorMcp3008Backend(Backend):
if new_measurement: if new_measurement:
self.bus.post(SensorDataChangeEvent(sensors=new_measurement)) self.bus.post(SensorDataChangeEvent(sensors=new_measurement))
self.last_measurement = measurement
time.sleep(self.poll_seconds) time.sleep(self.poll_seconds)