From a6dac4bd8495bc04f762a3ad415d301fb10498c9 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sun, 6 Sep 2020 08:47:43 +0300 Subject: ugpio plugins --- kvmd/plugins/atx/gpio.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kvmd/plugins/atx') 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, ) -- cgit v1.2.3