From 3fee94552b5620679aaf66d8087e95613a9ed712 Mon Sep 17 00:00:00 2001 From: Sandy Macdonald Date: Fri, 14 Jun 2019 21:24:13 +0100 Subject: [PATCH] Fix for scope error --- examples/luftdaten.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/luftdaten.py b/examples/luftdaten.py index b7f0565..5690e90 100755 --- a/examples/luftdaten.py +++ b/examples/luftdaten.py @@ -50,6 +50,7 @@ # Read values from BME280 and PMS5003 and return as dict def read_values(): + global pms5003 values = {} cpu_temp = get_cpu_temperature() raw_temp = bme280.get_temperature()