Browse Source

🩹 Fix xatc EEPROM debug (#23911)

ellensp 3 years ago
parent
commit
9b2c06045d
No account linked to committer's email address
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      Marlin/src/module/settings.cpp

+ 5
- 3
Marlin/src/module/settings.cpp View File

@@ -277,7 +277,9 @@ typedef struct SettingsDataStruct {
277 277
   // X_AXIS_TWIST_COMPENSATION
278 278
   //
279 279
   #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;
281 283
   #endif
282 284
 
283 285
   //
@@ -900,7 +902,7 @@ void MarlinSettings::postprocess() {
900 902
     // X Axis Twist Compensation
901 903
     //
902 904
     #if ENABLED(X_AXIS_TWIST_COMPENSATION)
903
-      _FIELD_TEST(xatc);
905
+      _FIELD_TEST(xatc_spacing);
904 906
       EEPROM_WRITE(xatc.spacing);
905 907
       EEPROM_WRITE(xatc.start);
906 908
       EEPROM_WRITE(xatc.z_offset);
@@ -1811,7 +1813,7 @@ void MarlinSettings::postprocess() {
1811 1813
       // X Axis Twist Compensation
1812 1814
       //
1813 1815
       #if ENABLED(X_AXIS_TWIST_COMPENSATION)
1814
-        _FIELD_TEST(xatc);
1816
+        _FIELD_TEST(xatc_spacing);
1815 1817
         EEPROM_READ(xatc.spacing);
1816 1818
         EEPROM_READ(xatc.start);
1817 1819
         EEPROM_READ(xatc.z_offset);

Loading…
Cancel
Save