mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
fixed double get_state() in serial hid
This commit is contained in:
@@ -200,7 +200,7 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst
|
|||||||
while self.is_alive():
|
while self.is_alive():
|
||||||
state = self.get_state()
|
state = self.get_state()
|
||||||
if state != prev_state:
|
if state != prev_state:
|
||||||
yield self.get_state()
|
yield state
|
||||||
prev_state = state
|
prev_state = state
|
||||||
await asyncio.sleep(self.__state_poll)
|
await asyncio.sleep(self.__state_poll)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user