summaryrefslogtreecommitdiff
path: root/kvmd/plugins/atx/gpio.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-06 08:47:43 +0300
committerDevaev Maxim <[email protected]>2020-09-07 05:54:25 +0300
commita6dac4bd8495bc04f762a3ad415d301fb10498c9 (patch)
treeea81c6a9a9ea2521cc4b9bdfaee9b00d5b6e9c6d /kvmd/plugins/atx/gpio.py
parente8bd1e264822967e1ddc628bf507664a5f4b9679 (diff)
ugpio plugins
Diffstat (limited to 'kvmd/plugins/atx/gpio.py')
-rw-r--r--kvmd/plugins/atx/gpio.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/plugins/atx/gpio.py b/kvmd/plugins/atx/gpio.py
index 674f18d1..aed086ae 100644
--- a/kvmd/plugins/atx/gpio.py
+++ b/kvmd/plugins/atx/gpio.py
@@ -62,8 +62,8 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes
self.__power_led_pin = gpio.set_input(power_led_pin)
self.__hdd_led_pin = gpio.set_input(hdd_led_pin)
- self.__power_switch_pin = gpio.set_output(power_switch_pin)
- self.__reset_switch_pin = gpio.set_output(reset_switch_pin)
+ self.__power_switch_pin = gpio.set_output(power_switch_pin, False)
+ self.__reset_switch_pin = gpio.set_output(reset_switch_pin, False)
self.__power_led_inverted = power_led_inverted
self.__hdd_led_inverted = hdd_led_inverted
@@ -75,7 +75,7 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes
self.__region = aiotools.AioExclusiveRegion(AtxIsBusyError, self.__state_notifier)
self.__reader = gpio.BatchReader(
- pins=[self.__power_led_pin, self.__hdd_led_pin],
+ pins=set([self.__power_led_pin, self.__hdd_led_pin]),
interval=state_poll,
notifier=self.__state_notifier,
)