diff options
author | Maxim Devaev <[email protected]> | 2020-09-20 18:24:18 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-20 18:24:18 +0300 |
commit | 7dd9895dda55e8a4d80d85dae4dca57dc7789b09 (patch) | |
tree | c62ef5545b44c48f2db3391bb1bf949ada02cf8a /kvmd/plugins/msd | |
parent | c6b7b58f2d39371f9ec37697abf8248111693b17 (diff) | |
parent | a8589e48abb9853b0b3ccec31fc6898f6393de3e (diff) |
Merge pull request #9 from OlegGirko/gpiod_compat
Make kvmd compatible with libgpiod 1.2
Diffstat (limited to 'kvmd/plugins/msd')
-rw-r--r-- | kvmd/plugins/msd/relay.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/msd/relay.py b/kvmd/plugins/msd/relay.py index ac09b5c9..f4ecc6ab 100644 --- a/kvmd/plugins/msd/relay.py +++ b/kvmd/plugins/msd/relay.py @@ -177,10 +177,10 @@ class _Gpio: self.__chip = gpiod.Chip(aiogp.DEVICE_PATH) self.__target_line = self.__chip.get_line(self.__target_pin) - self.__target_line.request("kvmd::msd-relay::target", gpiod.LINE_REQ_DIR_OUT, default_val=0) + self.__target_line.request("kvmd::msd-relay::target", gpiod.LINE_REQ_DIR_OUT, default_vals=[0]) self.__reset_line = self.__chip.get_line(self.__reset_pin) - self.__reset_line.request("kvmd::msd-relay::reset", gpiod.LINE_REQ_DIR_OUT, default_val=0) + self.__reset_line.request("kvmd::msd-relay::reset", gpiod.LINE_REQ_DIR_OUT, default_vals=[0]) def close(self) -> None: if self.__chip: |