Skip to content

Commit fc4e2bf

Browse files
committed
fix v3.9.9 close_loop.py args error bug
1 parent f15f384 commit fc4e2bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymycobot/close_loop.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding=utf-8
2+
import threading
23
import time
34
import struct
45
from datetime import datetime
@@ -23,6 +24,8 @@ def __init__(self, debug=False):
2324
self.sync_mode = True
2425
self.all_debug_data = []
2526
self.all_read_data = b""
27+
self.lock_out = threading.Lock()
28+
self.lock = threading.Lock()
2629

2730
def _send_command(self, genre, real_command):
2831
self.write_command.append(genre)

0 commit comments

Comments
 (0)