This PR will add a validation in order to make the user put the device in DFU before using the flash local.
That validation will be required when the current device os version is lower than 2.0.0
How to Test
Downgrade your device with a very old version: npm start -- update --target 1.5.0
Attempt to flash an application: npm start -- flash --local ${deviceId} ${binary}
Update your device with the latest version: npm start -- update
Attempt to flash an application: npm start -- flash --local ${deviceId} ${binary}
outcome
For old device os versions: A message will appear indicating that the user needs to put their device in DFU before start the flashing.
For latest device os version: You will be able to flash your device without any message
Description
This PR will add a validation in order to make the user put the device in DFU before using the flash local. That validation will be required when the current device os version is lower than 2.0.0
How to Test
npm start -- update --target 1.5.0
npm start -- flash --local ${deviceId} ${binary}
npm start -- update
npm start -- flash --local ${deviceId} ${binary}
outcome For old device os versions: A message will appear indicating that the user needs to put their device in DFU before start the flashing. For latest device os version: You will be able to flash your device without any message
Related Issues / Discussions
Story details: https://app.shortcut.com/particle/story/121836/ask-user-to-switch-to-dfu-for-os-2-0-0-in-local-flash
Completeness