summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-01-24 19:09:30 +0300
committerMaxim Devaev <[email protected]>2022-01-24 19:09:30 +0300
commit2396e87b701009c57e21ecbe07696275716c5df5 (patch)
treeafd08cf2978296d61df029fbd55295ca17aa261d /kvmd
parenta614be7d7687e755385886ac17686902c5d512a0 (diff)
refactoring
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/plugins/ugpio/pway.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/kvmd/plugins/ugpio/pway.py b/kvmd/plugins/ugpio/pway.py
index 3bd2a268..aeff27e3 100644
--- a/kvmd/plugins/ugpio/pway.py
+++ b/kvmd/plugins/ugpio/pway.py
@@ -1,6 +1,6 @@
# ========================================================================== #
# #
-# KVMD - The main Pi-KVM daemon. #
+# KVMD - The main PiKVM daemon. #
# #
# Copyright (C) 2018-2022 Maxim Devaev <[email protected]> #
# #
@@ -182,14 +182,12 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
# Set a channel by sending PS [1-16]
# Note that the recv is 0-based index, while send is 1-based. We add 1 to the "channel" to
# normalize for the 1-based index on send
- cmd = (b"PS")
- tty.write(b"%s %d\r" % (cmd, channel + 1))
+ tty.write(b"PS %d\r" % (channel + 1))
tty.flush()
def __reset(self, tty: serial.Serial) -> None:
# Reset by sending PS without port number
- cmd = (b"PS")
- tty.write(b"%s\r" % (cmd))
+ tty.write(b"PS\r")
tty.flush()
def __str__(self) -> str: