Skip to content

Commit

Permalink
fix destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Jan 27, 2025
1 parent a6ae2d7 commit e107667
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/cmd/setup-tachyon.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = class SetupTachyonCommands extends CLICommandBase {
this._formatAndDisplaySteps = this._formatAndDisplaySteps.bind(this);
}

async setup({ skipFlashingOs, version, loadConfig, saveConfig }) {
async setup({ skip_flashing_os: skipFlashingOs, version, load_config: loadConfig, save_config: saveConfig }) {
try {
this.ui.write(`
===========================================================
Expand Down
9 changes: 4 additions & 5 deletions src/lib/qdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ class QdlFlasher {
}

processFlashingLogs(line) {
if (!this.preparingDownload) {
this.preparingDownload = true;
this.ui.stdout.write('Preparing for download...');
}

if (line.includes('status=getProgramInfo')) {
this.handleProgramInfo(line);
} else if (line.includes('status=Start flashing module')) {
Expand All @@ -115,6 +110,10 @@ class QdlFlasher {
}

handleProgramInfo(line) {
if (!this.preparingDownload) {
this.preparingDownload = true;
this.ui.stdout.write('Preparing to download files...');
}
const match = line.match(/sectors_total=(\d+)/);
if (match) {
this.totalSectorsInAllFiles += parseInt(match[1], 10);
Expand Down

0 comments on commit e107667

Please sign in to comment.