From 518379ea35357cb7ac5821e0e7f335e4cd768028 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 16 May 2025 11:12:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20get=5Ftyy=5Fdata=E4=BC=98=E5=8C=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/em/cd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/em/cd.py b/apps/em/cd.py index 76eb04fc..15d2ae45 100644 --- a/apps/em/cd.py +++ b/apps/em/cd.py @@ -17,7 +17,7 @@ def get_tyy_data(*args): resp = sc.recv(1024) if not resp: raise ParseError("采集器返回空数据") - if len(resp) < 8: + elif len(resp) < 8: raise ParseError("设备未启动") json_data = resp[5:-4] json_str = json_data.decode('utf-8')