pixelit-project / PixelIt.WebUI

The WebUI for the PixelIt project, here the Pixel Art gallery, usermap and various settings were implemented.
MIT License
3 stars 4 forks source link

Feature Request: filename check before upgrade #58

Closed jekader closed 2 months ago

jekader commented 2 months ago

Bricked one of my boards by accident since I had too many PixelIt tabs open at the same time so here's a feature request:

Firmware files have predictable names like firmware_<version>_<target>.bin and both the version and build target are known to the UI.

It would be nice if the UI can verify that the filename provided for firmware upgrade has a version not lower than the existing one and a matching build target. If the file has an unexpected name - print out a warning to the user who can then decide whether to proceed or abort the upgrade.

o0shojo0o commented 2 months ago

The WebUI could even check the version in the configuration file. Once I have some time, I will take a closer look at it.

o0shojo0o commented 2 months ago

Here’s how it will be implemented: The check is performed based on the file name. If anything cannot be determined, a warning will be issued, and caution will be advised

image

jekader commented 2 months ago

Thanks, looks awesome!