If an asset is renamed but not otherwise modified, the CLI won't flash the newly named asset to the device, leading to the device being in safe mode.
Steps to test:
Compile a project with one asset test.txt
particle flash --local app.zip
Rename the asset test2.txt and recompile
particle flash --local app.zip
Check that test2.txt is properly flashed.
I made an additional change to avoid resetting the device an additional when flashing assets in normal mode. The 2 scenarios are either that the asset is flashed, then the device reboots on its own, or the asset is skipped so an addtional reset causes the application to restart one more time than necessary.
Story details: https://app.shortcut.com/particle/story/127227
If an asset is renamed but not otherwise modified, the CLI won't flash the newly named asset to the device, leading to the device being in safe mode.
Steps to test:
test.txt
particle flash --local app.zip
test2.txt
and recompileparticle flash --local app.zip
test2.txt
is properly flashed.I made an additional change to avoid resetting the device an additional when flashing assets in normal mode. The 2 scenarios are either that the asset is flashed, then the device reboots on its own, or the asset is skipped so an addtional reset causes the application to restart one more time than necessary.
Hugo, can you think of a downside to this change?