diff --git a/platypush/backend/sensor/mcp3008.py b/platypush/backend/sensor/mcp3008.py index 4e2ed333..9564b5d8 100644 --- a/platypush/backend/sensor/mcp3008.py +++ b/platypush/backend/sensor/mcp3008.py @@ -39,6 +39,7 @@ class SensorMcp3008Backend(Backend): if new_measurement: self.bus.post(SensorDataChangeEvent(sensors=new_measurement)) + self.last_measurement = measurement time.sleep(self.poll_seconds)