修改类型引用的bug
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||||
from threading import Semaphore
|
from threading import Semaphore
|
||||||
import datetime
|
from datetime import datetime
|
||||||
from typing import Deque
|
from typing import Deque
|
||||||
from lib.alg.image_processing_3d import detect_obstacles_in_box
|
from lib.alg.image_processing_3d import detect_obstacles_in_box
|
||||||
import time
|
import time
|
||||||
@@ -166,7 +166,7 @@ class Presenter:
|
|||||||
# TODO: 对tcp发回的数据进行按行处理,并且返回一个数组(不返回了,它接收数据只是为了切换模式)
|
# TODO: 对tcp发回的数据进行按行处理,并且返回一个数组(不返回了,它接收数据只是为了切换模式)
|
||||||
def rec_tcp_data_handle(self, data):
|
def rec_tcp_data_handle(self, data):
|
||||||
if data:
|
if data:
|
||||||
data += data.decode("utf-8", errors="ignore")
|
data = data.decode("utf-8", errors="ignore")
|
||||||
while "\n" in data:
|
while "\n" in data:
|
||||||
line, data = data.split("\n", 1)
|
line, data = data.split("\n", 1)
|
||||||
if not line.strip():
|
if not line.strip():
|
||||||
|
Reference in New Issue
Block a user