From 35bfe95bfb28f2e1aaeb242dbe660c6180179f3a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 14 Jul 2021 14:33:00 +0800 Subject: [PATCH] bugfix --- appPublic/udp_comm.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/appPublic/udp_comm.py b/appPublic/udp_comm.py index 06fb34c..12eea63 100644 --- a/appPublic/udp_comm.py +++ b/appPublic/udp_comm.py @@ -24,11 +24,8 @@ class UdpComm: while self.run_flg: try: b, addr = self.udpSerSock.recvfrom(BUFSIZE) - data = json.loads(b) if addr[0] != self.host: - self.callback(data, addr) - # ret = json.dumps(self.info).encode('utf-8') - # self.udpSerSock.sendto(ret, addr) + self.callback(b, addr) except Exception as e: print('exception happened:',e) pass