fixed double get_state() in serial hid

This commit is contained in:
Devaev Maxim 2020-02-15 11:34:37 +03:00
parent 2f64902983
commit 5e9c110ef6

View File

@ -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)