Add boot.py and increase timeout values
This commit is contained in:
parent
bc61f46e8b
commit
721c9936b9
2 changed files with 5 additions and 2 deletions
3
MacroPad_RPC_Home_Assistant/boot.py
Executable file
3
MacroPad_RPC_Home_Assistant/boot.py
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
import usb_cdc
|
||||
|
||||
usb_cdc.enable(console=True, data=True)
|
||||
|
|
@ -15,8 +15,8 @@ except ImportError:
|
|||
import usb_cdc as serial
|
||||
json_decode_exception = ValueError
|
||||
|
||||
RESPONSE_TIMEOUT=1
|
||||
DATA_TIMEOUT=0.2
|
||||
RESPONSE_TIMEOUT=5
|
||||
DATA_TIMEOUT=0.5
|
||||
|
||||
class RpcError(Exception):
|
||||
"""For RPC Specific Errors"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue