Skip to content

Commit 9b2c060

Browse files
authored
🩹 Fix xatc EEPROM debug (MarlinFirmware#23911)
1 parent 631e35b commit 9b2c060

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Marlin/src/module/settings.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ typedef struct SettingsDataStruct {
277277
// X_AXIS_TWIST_COMPENSATION
278278
//
279279
#if ENABLED(X_AXIS_TWIST_COMPENSATION)
280-
XATC xatc; // M423 X Z
280+
float xatc_spacing; // M423 X Z
281+
float xatc_start;
282+
xatc_array_t xatc_z_offset;
281283
#endif
282284

283285
//
@@ -900,7 +902,7 @@ void MarlinSettings::postprocess() {
900902
// X Axis Twist Compensation
901903
//
902904
#if ENABLED(X_AXIS_TWIST_COMPENSATION)
903-
_FIELD_TEST(xatc);
905+
_FIELD_TEST(xatc_spacing);
904906
EEPROM_WRITE(xatc.spacing);
905907
EEPROM_WRITE(xatc.start);
906908
EEPROM_WRITE(xatc.z_offset);
@@ -1811,7 +1813,7 @@ void MarlinSettings::postprocess() {
18111813
// X Axis Twist Compensation
18121814
//
18131815
#if ENABLED(X_AXIS_TWIST_COMPENSATION)
1814-
_FIELD_TEST(xatc);
1816+
_FIELD_TEST(xatc_spacing);
18151817
EEPROM_READ(xatc.spacing);
18161818
EEPROM_READ(xatc.start);
18171819
EEPROM_READ(xatc.z_offset);

0 commit comments

Comments
 (0)