-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show progress bar when flashing Tachyon #785
Conversation
- Show progress bar while flashing - Show location of output log file at the start of the flashing process. - Throw error is device is not in EDL mode or no device is detected. - Propagate any errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
src/lib/qdl.js
Outdated
const qdlArgs = [ | ||
'--storage', | ||
TACHYON_STORAGE_TYPE, | ||
async function run({ files, includeDir, updateFolder, zip, ui, outputLogFile }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My main feedback is to break this function into smaller functions to make sense of it.
src/lib/qdl.js
Outdated
fs.appendFileSync(outputLogFile, `${line}\n`); | ||
|
||
if (line.includes('Waiting for EDL device')) { | ||
handleError(process, `Device is not in EDL mode${os.EOL}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handleError(process, `Device is not in EDL mode${os.EOL}`); | |
handleError(process, `Ensure your device is connected and in EDL mode${os.EOL}`); |
Description
flash --tachyon
How to Test
Same flashing steps using
particle.js flash --tachyon
Related Issues / Discussions
Completeness