ftx-prog
ftx-prog copied to clipboard
Fix restore function
Problem:
- the restore file is loaded into the
newbuffer - the eeprom_fields of the
oldbuffer are decoded intoee eeis patched in place viaprocess_args- if
erase_eeprom == 0eeis applied to thenewbuffer => this results innewandoldalways being identical
Solution:
- if
file_pathdecodeeeformnewbuffer - else decode
eefromoldbuffer
Positive side effect:
- while restoring from file the eeprom fields can still be patched on the fly