Adds CH9329 Serial to HID Plugin Support (#122)

* Add ch9329 plugin

* refactoring ch9329

* refactor ch9329 and cleanup

* refactoring

* fixing lint errors

* clarifying list type

* fix mouse multiple buttons

* remove unused var

---------

Co-authored-by: Maxim Devaev <mdevaev@gmail.com>
This commit is contained in:
jacobbar
2023-03-14 21:27:44 +07:00
committed by Maxim Devaev
parent 6e24efc81e
commit 6689008840
2 changed files with 19 additions and 20 deletions

View File

@@ -256,11 +256,11 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst
self.__set_state_online(True)
return True
except Exception as err:
except _ResError as err:
self.__set_state_online(False)
get_logger(0).info(err)
time.sleep(2)
error_retval = False
time.sleep(2)
return error_retval