From 5e9c110ef66aeb5f6634135f246171dffc1d44e3 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 15 Feb 2020 11:34:37 +0300 Subject: fixed double get_state() in serial hid --- kvmd/plugins/hid/serial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvmd/plugins/hid/serial.py') diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py index 3f9fe23b..9927b3aa 100644 --- a/kvmd/plugins/hid/serial.py +++ b/kvmd/plugins/hid/serial.py @@ -200,7 +200,7 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst while self.is_alive(): state = self.get_state() if state != prev_state: - yield self.get_state() + yield state prev_state = state await asyncio.sleep(self.__state_poll) -- cgit v1.2.3