diff options
author | Devaev Maxim <[email protected]> | 2020-08-31 05:01:09 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-08-31 05:01:09 +0300 |
commit | 584651afbade8b742952af35ba83bd9ee499f17b (patch) | |
tree | 2257ff24a50f7bcbb69e6fe5d5884773dd75cbd5 /kvmd/gpio.py | |
parent | 9baf507453722d88f116db6f61f80e0e5d569849 (diff) |
proper set_input/set_output
Diffstat (limited to 'kvmd/gpio.py')
-rw-r--r-- | kvmd/gpio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/gpio.py b/kvmd/gpio.py index 6959a640..ea99149e 100644 --- a/kvmd/gpio.py +++ b/kvmd/gpio.py @@ -74,7 +74,7 @@ class BatchReader: def __init__(self, pins: List[int], interval: float, notifier: aiotools.AioNotifier) -> None: self.__pins = pins self.__flags: Tuple[Optional[bool], ...] = (None,) * len(pins) - self.__state = dict.fromkeys(pins, False) + self.__state = {pin: read(pin) for pin in pins} self.__interval = interval self.__notifier = notifier |