Restore parameters minor bug fix.

- `$RST=#` was not wiping the G30 positions from EEPROM. Minor but now
fixed.
pull/1/head
Sonny Jeon 2015-06-25 15:05:47 -06:00
rodzic 81505e6a81
commit cc38ae2471
3 zmienionych plików z 29 dodań i 3 usunięć

Wyświetl plik

@ -27,8 +27,8 @@ Grbl includes full acceleration management with look ahead. That means the contr
***
_**Master Branch:**_
* [Grbl v0.9i Atmega328p 16mhz 115200baud with generic defaults](http://bit.ly/1EiviDk) _(2015-06-20)_
* [Grbl v0.9i Atmega328p 16mhz 115200baud with ShapeOko2 defaults](http://bit.ly/1NYIfKl) _(2015-06-20)_
* [Grbl v0.9i Atmega328p 16mhz 115200baud with generic defaults](http://bit.ly/1EiviDk) _(2015-06-25)_
* [Grbl v0.9i Atmega328p 16mhz 115200baud with ShapeOko2 defaults](http://bit.ly/1NYIfKl) _(2015-06-25)_
- **IMPORTANT INFO WHEN UPGRADING TO GRBL v0.9i:**
- Baudrate is now **115200** (Up from 9600).
- Homing cycle updated. Located based on switch trigger, rather than release point.

Wyświetl plik

@ -1,3 +1,29 @@
----------------
Date: 2015-06-20
Author: Sonny Jeon
Subject: New EEPROM restore functions.
- Tweaked the previous EEPROM restore implementation and added new
functionality.
- `$RST=$` restores the `$$` grbl settings back to firmware defaults,
which are set when compiled.
- `$RST=#` restores the `$#` parameters in EEPROM. At times its useful
to clear these and start over, rather than manually writing each entry.
-`$RST=*` wipe all of the data in EEPROM that Grbl uses and restores
them to defaults. This includes `$$` settings, `$#` parameters, `$N`
startup lines, and `$i` build info string.
NOTE: This doesnt write zeros throughout the EEPROM. It only writes
where Grbl looks for data. For a complete wipe, please use the Arduino
IDEs EEPROM clear example.
- Refactored the restore and wipe functions in settings.c to
accommodate the new commands.
----------------
Date: 2015-06-18
Author: Sonny Jeon

Wyświetl plik

@ -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) {