Skip to content

Commit dd944d4

Browse files
author
Russell Green
committed
fix: fixes dict read error
1 parent f9c4767 commit dd944d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212
__author__ = "Russell Green"
1313
__license__ = "MIT"
14-
__version__ = "1.0.1"
14+
__version__ = "1.0.2"
1515
__maintainer__ = "Russell.Green"
1616
__email__ = "[email protected]"
1717
__status__ = "Production"
@@ -241,7 +241,7 @@ def set_get_pin_value(pin, value):
241241

242242

243243
def get_pin_history(pin):
244-
if pin in gpio_pin_history[pin]:
244+
if pin in gpio_pin_history:
245245
return gpio_pin_history[pin]
246246
else:
247247
return {"lastValue": None}

0 commit comments

Comments
 (0)