增加自动保存数据的 com口标记

This commit is contained in:
wangxibao 2024-09-06 12:11:51 +08:00
parent 33506c78bb
commit 9f1a80364d
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -230,7 +230,7 @@ class PyQt5Serial(QtWidgets.QWidget,Ui_UartAssistant):
#日志保存
# 格式化日期时间字符串,用于文件名
# 例如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"