mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
default values for the serial hid plugin
This commit is contained in:
parent
f474fd6453
commit
8e2688d820
@ -11,8 +11,6 @@ kvmd:
|
|||||||
|
|
||||||
hid:
|
hid:
|
||||||
type: serial
|
type: serial
|
||||||
reset_pin: 4
|
|
||||||
device: /dev/kvmd-hid
|
|
||||||
|
|
||||||
atx:
|
atx:
|
||||||
type: gpio
|
type: gpio
|
||||||
|
|||||||
@ -11,8 +11,6 @@ kvmd:
|
|||||||
|
|
||||||
hid:
|
hid:
|
||||||
type: serial
|
type: serial
|
||||||
reset_pin: 4
|
|
||||||
device: /dev/kvmd-hid
|
|
||||||
|
|
||||||
atx:
|
atx:
|
||||||
type: gpio
|
type: gpio
|
||||||
|
|||||||
@ -11,8 +11,6 @@ kvmd:
|
|||||||
|
|
||||||
hid:
|
hid:
|
||||||
type: serial
|
type: serial
|
||||||
reset_pin: 4
|
|
||||||
device: /dev/kvmd-hid
|
|
||||||
|
|
||||||
atx:
|
atx:
|
||||||
type: gpio
|
type: gpio
|
||||||
|
|||||||
@ -11,8 +11,6 @@ kvmd:
|
|||||||
|
|
||||||
hid:
|
hid:
|
||||||
type: serial
|
type: serial
|
||||||
reset_pin: 4
|
|
||||||
device: /dev/kvmd-hid
|
|
||||||
|
|
||||||
atx:
|
atx:
|
||||||
type: gpio
|
type: gpio
|
||||||
|
|||||||
@ -11,8 +11,6 @@ kvmd:
|
|||||||
|
|
||||||
hid:
|
hid:
|
||||||
type: serial
|
type: serial
|
||||||
reset_pin: 4
|
|
||||||
device: /dev/kvmd-hid
|
|
||||||
|
|
||||||
atx:
|
atx:
|
||||||
type: gpio
|
type: gpio
|
||||||
|
|||||||
@ -11,8 +11,6 @@ kvmd:
|
|||||||
|
|
||||||
hid:
|
hid:
|
||||||
type: serial
|
type: serial
|
||||||
reset_pin: 4
|
|
||||||
device: /dev/kvmd-hid
|
|
||||||
|
|
||||||
atx:
|
atx:
|
||||||
type: gpio
|
type: gpio
|
||||||
|
|||||||
@ -11,8 +11,6 @@ kvmd:
|
|||||||
|
|
||||||
hid:
|
hid:
|
||||||
type: serial
|
type: serial
|
||||||
reset_pin: 4
|
|
||||||
device: /dev/kvmd-hid
|
|
||||||
|
|
||||||
atx:
|
atx:
|
||||||
type: gpio
|
type: gpio
|
||||||
|
|||||||
@ -11,8 +11,6 @@ kvmd:
|
|||||||
|
|
||||||
hid:
|
hid:
|
||||||
type: serial
|
type: serial
|
||||||
reset_pin: 4
|
|
||||||
device: /dev/kvmd-hid
|
|
||||||
|
|
||||||
atx:
|
atx:
|
||||||
type: gpio
|
type: gpio
|
||||||
|
|||||||
@ -11,8 +11,6 @@ kvmd:
|
|||||||
|
|
||||||
hid:
|
hid:
|
||||||
type: serial
|
type: serial
|
||||||
reset_pin: 4
|
|
||||||
device: /dev/kvmd-hid
|
|
||||||
|
|
||||||
atx:
|
atx:
|
||||||
type: gpio
|
type: gpio
|
||||||
|
|||||||
@ -11,8 +11,6 @@ kvmd:
|
|||||||
|
|
||||||
hid:
|
hid:
|
||||||
type: serial
|
type: serial
|
||||||
reset_pin: 4
|
|
||||||
device: /dev/kvmd-hid
|
|
||||||
|
|
||||||
atx:
|
atx:
|
||||||
type: gpio
|
type: gpio
|
||||||
|
|||||||
@ -147,7 +147,7 @@ class BaseMcuHid(BaseHid, multiprocessing.Process): # pylint: disable=too-many-
|
|||||||
def get_plugin_options(cls) -> Dict:
|
def get_plugin_options(cls) -> Dict:
|
||||||
return {
|
return {
|
||||||
"gpio_device": Option("/dev/gpiochip0", type=valid_abs_path, unpack_as="gpio_device_path"),
|
"gpio_device": Option("/dev/gpiochip0", type=valid_abs_path, unpack_as="gpio_device_path"),
|
||||||
"reset_pin": Option(-1, type=valid_gpio_pin_optional),
|
"reset_pin": Option(4, type=valid_gpio_pin_optional),
|
||||||
"reset_inverted": Option(False, type=valid_bool),
|
"reset_inverted": Option(False, type=valid_bool),
|
||||||
"reset_delay": Option(0.1, type=valid_float_f01),
|
"reset_delay": Option(0.1, type=valid_float_f01),
|
||||||
|
|
||||||
|
|||||||
@ -101,7 +101,7 @@ class Plugin(BaseMcuHid):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def __get_phy_options(cls) -> Dict:
|
def __get_phy_options(cls) -> Dict:
|
||||||
return {
|
return {
|
||||||
"device": Option("", type=valid_abs_path, unpack_as="device_path"),
|
"device": Option("/dev/kvmd-hid", type=valid_abs_path, unpack_as="device_path"),
|
||||||
"speed": Option(115200, type=valid_tty_speed),
|
"speed": Option(115200, type=valid_tty_speed),
|
||||||
"read_timeout": Option(2.0, type=valid_float_f01),
|
"read_timeout": Option(2.0, type=valid_float_f01),
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user