Open wavexx opened 1 year ago
I can definitely add a failure if the file is not found.
However, I'm not sure I understand the second request in regards to the third call also failing - "broken" firmware how? If a bad firmware is loaded into flash it will remain there and continue to be broken. Or are you proposing that if a nonexistent file is specified, that the flash space be wiped?
Describe the bug Running
MK404 -f
with a broken/missing/non-existing firmware file will still start without complaining if a previous firmware was already loaded.If
-f
is provided, it should always require a existing firmware and replace the existing, resulting in a failure.If
-f
provides a broken FW, and later MK404 is run without a-f
flag, MK404 should stay broken.The current behavior can lead to the user suspecting the provided FW was actually loaded, even though it didn't for whatever reason.
To Reproduce The sequence:
should result in the second to fail if the first succeeded.
should result in both the second and third invocation to fail if the first succeeded.