Skip to content

Commit

Permalink
Fix end of copied block of EEPROM upgrade from v9
Browse files Browse the repository at this point in the history
... needs to be one variable past the copied block, just like STL containers behave.
  • Loading branch information
D.R.racer authored and DRracer committed Oct 12, 2021
1 parent d28e558 commit a8cab53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/eeprom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,8 @@ static int eeprom_convert_from_v9(void) {
eeprom_vars_t vars = eeprom_var_defaults;
eeprom_init_FW_identifiers(vars);

eeprom_import_block(EEVAR_FILAMENT_TYPE, EEVAR_DEVHASH_IN_QR, &(vars.FILAMENT_TYPE));
// start addres of imported data block (FILAMENT_TYPE..EEVAR_DEVHASH_IN_QR)
eeprom_import_block(EEVAR_FILAMENT_TYPE, EEVAR_FOOTER_SETTING, &(vars.FILAMENT_TYPE));

eeprom_make_patches(vars);

Expand Down

0 comments on commit a8cab53

Please sign in to comment.