Skip to content

Commit 721c993

Browse files
committed
Add boot.py and increase timeout values
1 parent bc61f46 commit 721c993

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import usb_cdc
2+
3+
usb_cdc.enable(console=True, data=True)

MacroPad_RPC_Home_Assistant/rpc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import usb_cdc as serial
1616
json_decode_exception = ValueError
1717

18-
RESPONSE_TIMEOUT=1
19-
DATA_TIMEOUT=0.2
18+
RESPONSE_TIMEOUT=5
19+
DATA_TIMEOUT=0.5
2020

2121
class RpcError(Exception):
2222
"""For RPC Specific Errors"""

0 commit comments

Comments
 (0)