ftx-prog icon indicating copy to clipboard operation
ftx-prog copied to clipboard

Fix restore function

Open florian-hofer-ipe opened this issue 4 years ago • 0 comments

Problem:

  • the restore file is loaded into the new buffer
  • the eeprom_fields of the old buffer are decoded into ee
  • ee is patched in place via process_args
  • if erase_eeprom == 0 ee is applied to the new buffer => this results in new and old always being identical

Solution:

  • if file_path decode ee form new buffer
  • else decode ee from old buffer

Positive side effect:

  • while restoring from file the eeprom fields can still be patched on the fly

florian-hofer-ipe avatar Sep 20 '21 08:09 florian-hofer-ipe