Add missing eeprom features for Chiron TFT leveling.
This commit is contained in:
@@ -205,7 +205,7 @@
|
|||||||
* :[-2, -1, 0, 1, 2, 3, 4, 5, 6, 7]
|
* :[-2, -1, 0, 1, 2, 3, 4, 5, 6, 7]
|
||||||
*/
|
*/
|
||||||
//#define SERIAL_PORT_2 2 // For ESP8266
|
//#define SERIAL_PORT_2 2 // For ESP8266
|
||||||
#define BAUDRATE_2 500000 // For ESP8266
|
//#define BAUDRATE_2 500000 // For ESP8266
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Select a third serial port on the board to use for communication with the host.
|
* Select a third serial port on the board to use for communication with the host.
|
||||||
|
@@ -49,7 +49,7 @@
|
|||||||
#include "planner.h"
|
#include "planner.h"
|
||||||
#include "stepper.h"
|
#include "stepper.h"
|
||||||
#include "temperature.h"
|
#include "temperature.h"
|
||||||
|
#include "../lcd/anycubic_touchscreen.h"
|
||||||
#include "../lcd/marlinui.h"
|
#include "../lcd/marlinui.h"
|
||||||
#include "../libs/vector_3.h" // for matrix_3x3
|
#include "../libs/vector_3.h" // for matrix_3x3
|
||||||
#include "../gcode/gcode.h"
|
#include "../gcode/gcode.h"
|
||||||
@@ -1672,6 +1672,12 @@ void MarlinSettings::postprocess() {
|
|||||||
if (!validating) set_bed_leveling_enabled(false);
|
if (!validating) set_bed_leveling_enabled(false);
|
||||||
EEPROM_READ(bilinear_grid_spacing); // 2 ints
|
EEPROM_READ(bilinear_grid_spacing); // 2 ints
|
||||||
EEPROM_READ(bilinear_start); // 2 ints
|
EEPROM_READ(bilinear_start); // 2 ints
|
||||||
|
|
||||||
|
#if ENABLED(KNUTWURST_TFT_LEVELING)
|
||||||
|
z_values_index = eeprom_index;
|
||||||
|
z_values_size = sizeof(z_values);
|
||||||
|
#endif
|
||||||
|
|
||||||
EEPROM_READ(z_values); // 9 to 256 floats
|
EEPROM_READ(z_values); // 9 to 256 floats
|
||||||
}
|
}
|
||||||
else // EEPROM data is stale
|
else // EEPROM data is stale
|
||||||
|
Reference in New Issue
Block a user