Restore parameters minor bug fix.

- `$RST=#` was not wiping the G30 positions from EEPROM. Minor but now
fixed.
This commit is contained in:
Sonny Jeon
2015-06-25 15:05:47 -06:00
parent 81505e6a81
commit cc38ae2471
3 changed files with 29 additions and 3 deletions

View File

@ -99,7 +99,7 @@ void settings_restore(uint8_t restore_flag) {
uint8_t idx;
float coord_data[N_AXIS];
memset(&coord_data, 0, sizeof(coord_data));
for (idx=0; idx < SETTING_INDEX_NCOORD; idx++) { settings_write_coord_data(idx, coord_data); }
for (idx=0; idx <= SETTING_INDEX_NCOORD; idx++) { settings_write_coord_data(idx, coord_data); }
}
if (restore_flag & SETTINGS_RESTORE_STARTUP_LINES) {