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.";
} else {
if (m_communication) {
resetModule();
m_communication->startOta();
} else {
emit otaMessage("请先打开设备");

View File

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

View File

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