Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Jun 17, 2024
1 parent 73e729c commit 61b85e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cmd/device-protection.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ module.exports = class DeviceProtectionCommands extends CLICommandBase {

await this._flashBootloader(localBootloaderPath, 'disable');

this.ui.stdout.write(`Device protection disabled.${os.EOL}Device is open${os.EOL}`);
this.ui.stdout.write(`Putting device in developement mode...`);
this.ui.stdout.write(`Device protection disabled. Device is now open${os.EOL}`);
this.ui.stdout.write(`Putting device in developement mode to prevent cloud from enabling protection...${os.EOL}`);

const success = await this._markAsDevelopmentDevice(true);

if (!success) {
this.ui.stdout.write(`Failed to mark device as development device. Protection will be automatically enabled after a power cycle${os.EOL}`);
this.ui.stdout.write('Failed to mark device as development device. Protection will be automatically enabled after a power cycle');
} else {
this.ui.stdout.write('Device is now in development mode');
}
});
}
Expand Down

0 comments on commit 61b85e0

Please sign in to comment.