File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ def __init__(
36
36
key = "44" , # Key
37
37
debug_level = "DEBUG" , # Debug Level
38
38
perpetual = False , # When this is true the lib will try forever to connect to the serial
39
- check_last_transaction = True
39
+ check_last_transaction = True ,
40
+ wait_for_wake_up = 0.01
40
41
):
41
42
# Let's address some internal var
42
43
self .poll_timeout = timeout
@@ -51,6 +52,7 @@ def __init__(
51
52
self .my_key = key
52
53
self .poll_address = poll_address
53
54
self .perpetual = perpetual
55
+ self .wait_for_wake_up = wait_for_wake_up
54
56
55
57
# Init the Logging system
56
58
self .log = log_to_stderr ()
@@ -175,7 +177,7 @@ def _send_command(
175
177
176
178
self .connection .flush ()
177
179
self .connection .parity = serial .PARITY_SPACE
178
-
180
+ time . sleep ( self . wait_for_wake_up )
179
181
self .connection .write ((buf_header [1 :]))
180
182
181
183
except Exception as e :
You can’t perform that action at this time.
0 commit comments