reset module before ota.
All checks were successful
Build Applications / PullDocker (push) Successful in 3s
Build Applications / Build (push) Successful in 5m14s
Windows CI / build (push) Successful in 8m3s

This commit is contained in:
luocai 2024-11-08 18:26:33 +08:00
parent a6541c6a52
commit 881048a286
3 changed files with 6 additions and 12 deletions

View File

@ -478,6 +478,7 @@ bool Application::startOta(const QString &path) {
LOG(info) << "device already in ota mode."; LOG(info) << "device already in ota mode.";
} else { } else {
if (m_communication) { if (m_communication) {
resetModule();
m_communication->startOta(); m_communication->startOta();
} else { } else {
emit otaMessage("请先打开设备"); emit otaMessage("请先打开设备");

View File

@ -8,9 +8,11 @@ ListView {
message: "" message: ""
} }
} }
delegate: Text { delegate: TextEdit {
width: ListView.view.width width: ListView.view.width
readOnly: true
text: message text: message
selectByMouse: true
wrapMode: Text.Wrap wrapMode: Text.Wrap
} }

View File

@ -54,18 +54,9 @@ Window {
} }
} }
Item { Item {
// LogView { LogView {
// id: logBrowser
// anchors.fill: parent
// }
ScrollView {
id: view
anchors.fill: parent
TextArea {
id: logBrowser id: logBrowser
readOnly: true anchors.fill: parent
wrapMode: TextArea.WordWrap
}
} }
Button { Button {
text: "清空" text: "清空"