diff --git a/platypush/backend/sensor/mcp3008.py b/platypush/backend/sensor/mcp3008.py index 4e2ed33341..9564b5d804 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)