From b8cba8ec0c625a175f805a14cef8bb4d9649fce9 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 30 Apr 2018 01:43:23 +0200 Subject: [PATCH] Forgot an assignment --- platypush/backend/sensor/mcp3008.py | 1 + 1 file changed, 1 insertion(+) 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)