reset module before ota.
This commit is contained in:
parent
a6541c6a52
commit
881048a286
@ -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("请先打开设备");
|
||||
|
@ -8,9 +8,11 @@ ListView {
|
||||
message: ""
|
||||
}
|
||||
}
|
||||
delegate: Text {
|
||||
delegate: TextEdit {
|
||||
width: ListView.view.width
|
||||
readOnly: true
|
||||
text: message
|
||||
selectByMouse: true
|
||||
wrapMode: Text.Wrap
|
||||
}
|
||||
|
||||
|
@ -54,18 +54,9 @@ Window {
|
||||
}
|
||||
}
|
||||
Item {
|
||||
// LogView {
|
||||
// id: logBrowser
|
||||
// anchors.fill: parent
|
||||
// }
|
||||
ScrollView {
|
||||
id: view
|
||||
LogView {
|
||||
id: logBrowser
|
||||
anchors.fill: parent
|
||||
TextArea {
|
||||
id: logBrowser
|
||||
readOnly: true
|
||||
wrapMode: TextArea.WordWrap
|
||||
}
|
||||
}
|
||||
Button {
|
||||
text: "清空"
|
||||
|
Loading…
Reference in New Issue
Block a user