🚸 Fix, extend X Axis Twist Compensation (#23745)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
committed by
Scott Lahteine
parent
eabeac29fd
commit
c6f4b38877
@ -277,7 +277,7 @@ typedef struct SettingsDataStruct {
|
||||
// X_AXIS_TWIST_COMPENSATION
|
||||
//
|
||||
#if ENABLED(X_AXIS_TWIST_COMPENSATION)
|
||||
XATC xatc; // TBD
|
||||
XATC xatc; // M423 X Z
|
||||
#endif
|
||||
|
||||
//
|
||||
@ -901,7 +901,9 @@ void MarlinSettings::postprocess() {
|
||||
//
|
||||
#if ENABLED(X_AXIS_TWIST_COMPENSATION)
|
||||
_FIELD_TEST(xatc);
|
||||
EEPROM_WRITE(xatc);
|
||||
EEPROM_WRITE(xatc.spacing);
|
||||
EEPROM_WRITE(xatc.start);
|
||||
EEPROM_WRITE(xatc.z_offset);
|
||||
#endif
|
||||
|
||||
//
|
||||
@ -1809,7 +1811,10 @@ void MarlinSettings::postprocess() {
|
||||
// X Axis Twist Compensation
|
||||
//
|
||||
#if ENABLED(X_AXIS_TWIST_COMPENSATION)
|
||||
EEPROM_READ(xatc);
|
||||
_FIELD_TEST(xatc);
|
||||
EEPROM_READ(xatc.spacing);
|
||||
EEPROM_READ(xatc.start);
|
||||
EEPROM_READ(xatc.z_offset);
|
||||
#endif
|
||||
|
||||
//
|
||||
@ -3337,14 +3342,13 @@ void MarlinSettings::reset() {
|
||||
|
||||
#endif
|
||||
|
||||
// TODO: Create G-code for settings
|
||||
//#if ENABLED(X_AXIS_TWIST_COMPENSATION)
|
||||
// CONFIG_ECHO_START();
|
||||
// xatc.print_points();
|
||||
//#endif
|
||||
|
||||
#endif // HAS_LEVELING
|
||||
|
||||
//
|
||||
// X Axis Twist Compensation
|
||||
//
|
||||
TERN_(X_AXIS_TWIST_COMPENSATION, gcode.M423_report(forReplay));
|
||||
|
||||
//
|
||||
// Editable Servo Angles
|
||||
//
|
||||
|
Reference in New Issue
Block a user