CMXX - Software updater - update version after firmwaretool update
This commit is contained in:
@@ -67,7 +67,7 @@ async function listenToPort() {
|
||||
if (x.indexOf("SN=") > 0 && x.indexOf("HW=") > 0 && x.indexOf("STATE=") > 0)
|
||||
{
|
||||
progressBar("60", "Reading device completed", "#04AA6D");
|
||||
setTimeout(getDeviceData, 2000);
|
||||
setTimeout(getDeviceData, 4000);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -160,6 +160,7 @@ function firmwareUpdate(data){
|
||||
.then(response => response.json())
|
||||
.then(firmware=> {
|
||||
firmwarelocation = './firmware/'+firmware['software'];
|
||||
upgraded_version = firmware['version'];
|
||||
return firmwarelocation;
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user