summaryrefslogtreecommitdiff
path: root/kvmd/plugins/ugpio/gpio.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-07 12:16:53 +0300
committerDevaev Maxim <[email protected]>2020-09-07 13:33:13 +0300
commitc2831853a04168571caa9e639af30a7a0cf6e75d (patch)
treec25112eda45d6114c126dade88d3bd7e65a3942b /kvmd/plugins/ugpio/gpio.py
parentb56ff5034adab8d31bcad5d0a202de0ea18c437d (diff)
minor relatime fixes
Diffstat (limited to 'kvmd/plugins/ugpio/gpio.py')
-rw-r--r--kvmd/plugins/ugpio/gpio.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/kvmd/plugins/ugpio/gpio.py b/kvmd/plugins/ugpio/gpio.py
index 04afc75d..526397e1 100644
--- a/kvmd/plugins/ugpio/gpio.py
+++ b/kvmd/plugins/ugpio/gpio.py
@@ -78,9 +78,7 @@ class Plugin(BaseUserGpioDriver):
await self.__reader.poll()
def read(self, pin: int) -> bool:
- assert self.__reader
- return self.__reader.get(pin)
+ return gpio.read(pin)
def write(self, pin: int, state: bool) -> None:
- assert self.__reader
gpio.write(pin, state)