Skip to content

Commit b071bbb

Browse files
committed
fixed lvalue and rvalue have different structures
1 parent 3958921 commit b071bbb

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Python_Data_Monitor/3104venv/**
1+
Python_Data_Monitor/3104venv/**
2+
Python_Data_Monitor/PyScripts/__pycache__/**
Binary file not shown.
Binary file not shown.
Binary file not shown.

Python_Data_Monitor/PyScripts/udpconnection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def udp_conn(ip:str,port:int) -> None:
1515
length = len(recv_data)
1616
dat_buf[0:length] = recv_data
1717
except Exception:
18-
length = len('_,failed,_,_,0\n')
19-
dat_buf[0:length] = b'_,failed,0,,"0"\n'
18+
length = len(b'_,failed,_,_,0\n')
19+
dat_buf[0:length+1] = b'_,failed,0,,"0"\n'
2020
pass
2121
except KeyboardInterrupt:
2222
break

0 commit comments

Comments
 (0)