Skip to content

[BUG] Fail if firmware is not readable/usable #369

@wavexx

Description

@wavexx

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:

M404 -f working_fw
M404 -f file_does_not_exist

should result in the second to fail if the first succeeded.

M404 -f working_fw
M404 -f non_working_fw
M404

should result in both the second and third invocation to fail if the first succeeded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions