particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

feature/sc-121836/ask-user-to-switch-to-dfu-for-os-2-0-0-in #673

Closed hugomontero closed 1 year ago

hugomontero commented 1 year ago

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

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