Skip to content

Commit

Permalink
Format the recommendation msg
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed May 20, 2024
1 parent 9726a65 commit 41a5b4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cmd/serial.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ module.exports = class SerialCommand extends CLICommandBase {
}
}


// Print whatever was obtained from the device
this._printIdentifyInfo({
deviceId,
Expand Down Expand Up @@ -532,8 +531,11 @@ module.exports = class SerialCommand extends CLICommandBase {
}

const fwVer = device.firmwareVersion;
// XXX: Firmware version TBD
if (semver.gte(fwVer, '6.2.0')) {
this.ui.stdout.write(`[Recommendation]${os.EOL}Use the improved Wi-Fi configuration commands for this device-os version (>= 6.2.0).${os.EOL}See 'particle wifi --help' for more details on available commands.${os.EOL}`);
this.ui.stdout.write(`${chalk.yellow('[Recommendation]')}${os.EOL}`);
this.ui.stdout.write(`${chalk.yellow('Use the improved Wi-Fi configuration commands for this device-os version (>= 6.2.0)')}${os.EOL}`);
this.ui.stdout.write(`${chalk.yellow('See \'particle wifi --help\' for more details on available commands')}${os.EOL}`);
this.ui.stdout.write(`${os.EOL}`);
}

Expand Down

0 comments on commit 41a5b4c

Please sign in to comment.