From 391bec805e2503f517fbec5d864f4d353e5f00ab Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 17 Jun 2019 12:19:44 +0100 Subject: [PATCH 1/1] Fix in lieu of #1 --- examples/luftdaten.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/luftdaten.py b/examples/luftdaten.py index b7f0565..4d3d49a 100755 --- a/examples/luftdaten.py +++ b/examples/luftdaten.py @@ -62,7 +62,7 @@ def read_values(): values["P2"] = str(pm_values.pm_ug_per_m3(2.5)) values["P1"] = str(pm_values.pm_ug_per_m3(10)) except ReadTimeoutError: - pms5003 = PMS5003() + pms5003.reset() pm_values = pms5003.read() values["P2"] = str(pm_values.pm_ug_per_m3(2.5)) values["P1"] = str(pm_values.pm_ug_per_m3(10)) -- 2.30.2