diff options
author | Devaev Maxim <[email protected]> | 2019-11-20 05:08:49 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-11-20 05:08:49 +0300 |
commit | 01f92b6f19a230e9fb45e955afdec871b938371a (patch) | |
tree | 71ba442db852c22a944a2cfc16e9b277a2d6339e | |
parent | 9f4cc35a7547ccc39c8342fef8d60c71188a335d (diff) |
don't invert atx leds by default
-rw-r--r-- | configs/kvmd/main/v1-hdmi-rpi2.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v1-hdmi-rpi3.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v1-vga-rpi2.yaml | 2 | ||||
-rw-r--r-- | configs/kvmd/main/v1-vga-rpi3.yaml | 2 | ||||
-rw-r--r-- | kvmd/plugins/atx/gpio.py | 8 |
5 files changed, 12 insertions, 4 deletions
diff --git a/configs/kvmd/main/v1-hdmi-rpi2.yaml b/configs/kvmd/main/v1-hdmi-rpi2.yaml index f24bfccf..61e5d74f 100644 --- a/configs/kvmd/main/v1-hdmi-rpi2.yaml +++ b/configs/kvmd/main/v1-hdmi-rpi2.yaml @@ -21,6 +21,8 @@ kvmd: type: gpio power_led_pin: 24 hdd_led_pin: 22 + power_led_inverted: true + hdd_led_inverted: true power_switch_pin: 23 reset_switch_pin: 27 diff --git a/configs/kvmd/main/v1-hdmi-rpi3.yaml b/configs/kvmd/main/v1-hdmi-rpi3.yaml index f24bfccf..61e5d74f 100644 --- a/configs/kvmd/main/v1-hdmi-rpi3.yaml +++ b/configs/kvmd/main/v1-hdmi-rpi3.yaml @@ -21,6 +21,8 @@ kvmd: type: gpio power_led_pin: 24 hdd_led_pin: 22 + power_led_inverted: true + hdd_led_inverted: true power_switch_pin: 23 reset_switch_pin: 27 diff --git a/configs/kvmd/main/v1-vga-rpi2.yaml b/configs/kvmd/main/v1-vga-rpi2.yaml index 43b3349a..c4849717 100644 --- a/configs/kvmd/main/v1-vga-rpi2.yaml +++ b/configs/kvmd/main/v1-vga-rpi2.yaml @@ -21,6 +21,8 @@ kvmd: type: gpio power_led_pin: 24 hdd_led_pin: 22 + power_led_inverted: true + hdd_led_inverted: true power_switch_pin: 23 reset_switch_pin: 27 diff --git a/configs/kvmd/main/v1-vga-rpi3.yaml b/configs/kvmd/main/v1-vga-rpi3.yaml index 43b3349a..c4849717 100644 --- a/configs/kvmd/main/v1-vga-rpi3.yaml +++ b/configs/kvmd/main/v1-vga-rpi3.yaml @@ -21,6 +21,8 @@ kvmd: type: gpio power_led_pin: 24 hdd_led_pin: 22 + power_led_inverted: true + hdd_led_inverted: true power_switch_pin: 23 reset_switch_pin: 27 diff --git a/kvmd/plugins/atx/gpio.py b/kvmd/plugins/atx/gpio.py index 287d2b19..c657a7f3 100644 --- a/kvmd/plugins/atx/gpio.py +++ b/kvmd/plugins/atx/gpio.py @@ -80,10 +80,10 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes @classmethod def get_plugin_options(cls) -> Dict: return { - "power_led_pin": Option(-1, type=valid_gpio_pin), - "hdd_led_pin": Option(-1, type=valid_gpio_pin), - "power_led_inverted": Option(True, type=valid_bool), - "hdd_led_inverted": Option(True, type=valid_bool), + "power_led_pin": Option(-1, type=valid_gpio_pin), + "hdd_led_pin": Option(-1, type=valid_gpio_pin), + "power_led_inverted": Option(False, type=valid_bool), + "hdd_led_inverted": Option(False, type=valid_bool), "power_switch_pin": Option(-1, type=valid_gpio_pin), "reset_switch_pin": Option(-1, type=valid_gpio_pin), |