Skip to content

Commit

Permalink
Fix display of monitor the device when flash fails (#1286)
Browse files Browse the repository at this point in the history
* Fix display of monitor the device when flash fails

* Stylize text
  • Loading branch information
radurentea authored Sep 10, 2024
1 parent 8209065 commit 98a4d94
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3914,10 +3914,11 @@ const flash = (
workspaceRoot
) as ESP.FlashType;
}
await startFlashing(cancelToken, flashType, encryptPartition);
OutputChannel.appendLine(
"Flash has finished. You can monitor with ESP-IDF: Monitor your device command"
);
if (await startFlashing(cancelToken, flashType, encryptPartition)) {
OutputChannel.appendLine(
"Flash has finished. You can monitor your device with 'ESP-IDF: Monitor command'"
);
}
}
);
});
Expand Down

0 comments on commit 98a4d94

Please sign in to comment.