diff options
-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), |