mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user