|
@@ -162,7 +162,7 @@ function flashWithManifest(manifest) {
|
|
progressHolder.style.display = "block";
|
|
progressHolder.style.display = "block";
|
|
appStatus.textContent = `Flashing ${portsSelect.value}`;
|
|
appStatus.textContent = `Flashing ${portsSelect.value}`;
|
|
const numberOfSteps = manifest.flash.length * 2;
|
|
const numberOfSteps = manifest.flash.length * 2;
|
|
- let currectStepNumber = 1;
|
|
|
|
|
|
+ let correctStepNumber = 1;
|
|
prepareBinaries(manifest, (err, flashSpec) => {
|
|
prepareBinaries(manifest, (err, flashSpec) => {
|
|
if(err) throw err;
|
|
if(err) throw err;
|
|
|
|
|
|
@@ -197,7 +197,7 @@ function flashWithManifest(manifest) {
|
|
});
|
|
});
|
|
}).on("entry", (progress) => {
|
|
}).on("entry", (progress) => {
|
|
//For the download/extract progress. The other half is flashing.
|
|
//For the download/extract progress. The other half is flashing.
|
|
- const extractPercent = Math.round((currectStepNumber++/numberOfSteps) * 50);
|
|
|
|
|
|
+ const extractPercent = Math.round((correctStepNumber++/numberOfSteps) * 50);
|
|
updateProgressBar(extractPercent);
|
|
updateProgressBar(extractPercent);
|
|
appStatus.textContent = progress.display;
|
|
appStatus.textContent = progress.display;
|
|
});
|
|
});
|