Safecast / onyxfirmware

20 stars 8 forks source link

Ask for confirmation before overwriting FTDI EEPROM settings #50

Open marcan opened 11 years ago

marcan commented 11 years ago

I have a different device with a FTDI chip in it, which was connected when I wanted to upgrade my ONYX. firmware_loader changed the EEPROM settings on that device without warning. I managed to revert them (thankfully it does print the original settings before modifying them), but this is potentially dangerous. It should prompt the user to confirm that they have one and only one FTDI device connectd to the system before attempting to perform this change. It should also bail out (or require a "force" option) if the device name/serial number isn't what is expected of an ONYX.