Make EEPROM reproducible in GCode

With these changes the output of `M503 S0` is all you need to restore
the EEPROM. Building on this it is straightforward to save and restore
the EEPROM state using the SD card or external GCode file.

- Added `M145` to set “heatup states” for the LCD menu
- Added `M420` to toggle Mesh Bed Leveling
- Added `M421` to set a single Mesh coordinate
- Extended `Config_PrintSettings` with added M codes
- Cleaned up some comments here and there
This commit is contained in:
Scott Lahteine
2015-04-26 18:44:01 -07:00
parent 01bedd17c9
commit 0fca084ea6
20 changed files with 454 additions and 235 deletions

View File

@ -89,8 +89,9 @@ unsigned char soft_pwm_bed;
#endif
//===========================================================================
//=============================private variables============================
//============================ private variables ============================
//===========================================================================
static volatile bool temp_meas_ready = false;
#ifdef PIDTEMP
@ -187,7 +188,7 @@ static void updateTemperaturesFromRawValues();
#endif
//===========================================================================
//============================= functions ============================
//================================ functions ================================
//===========================================================================
void PID_autotune(float temp, int extruder, int ncycles)