增加自动保存数据的 com口标记
This commit is contained in:
parent
33506c78bb
commit
9f1a80364d
Binary file not shown.
@ -230,7 +230,7 @@ class PyQt5Serial(QtWidgets.QWidget,Ui_UartAssistant):
|
|||||||
#日志保存
|
#日志保存
|
||||||
# 格式化日期时间字符串,用于文件名
|
# 格式化日期时间字符串,用于文件名
|
||||||
# 例如:2024-05-28_12-34-56.txt
|
# 例如:2024-05-28_12-34-56.txt
|
||||||
self.file =time.strftime("%Y%m%d%H%M%S", time.localtime())
|
self.file =time.strftime("%Y%m%d%H%M%S", time.localtime())+self.ser.port
|
||||||
self.filename = self.file + ".txt"
|
self.filename = self.file + ".txt"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user