diff --git a/src/server.py b/src/server.py index 852add0..896747d 100644 --- a/src/server.py +++ b/src/server.py @@ -11,7 +11,7 @@ """ __author__ = "Russell Green" __license__ = "MIT" -__version__ = "1.0.1" +__version__ = "1.0.2" __maintainer__ = "Russell.Green" __email__ = "me@rusty.green" __status__ = "Production" @@ -241,7 +241,7 @@ def set_get_pin_value(pin, value): def get_pin_history(pin): - if pin in gpio_pin_history[pin]: + if pin in gpio_pin_history: return gpio_pin_history[pin] else: return {"lastValue": None}