Skip to content

Commit

Permalink
🩹 Fix xatc EEPROM debug (MarlinFirmware#23911)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and tomek2k1 committed Jan 13, 2023
1 parent c7a3f1e commit c391e34
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Marlin/src/module/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ typedef struct SettingsDataStruct {
// X_AXIS_TWIST_COMPENSATION
//
#if ENABLED(X_AXIS_TWIST_COMPENSATION)
XATC xatc; // M423 X Z
float xatc_spacing; // M423 X Z
float xatc_start;
xatc_array_t xatc_z_offset;
#endif

//
Expand Down Expand Up @@ -900,7 +902,7 @@ void MarlinSettings::postprocess() {
// X Axis Twist Compensation
//
#if ENABLED(X_AXIS_TWIST_COMPENSATION)
_FIELD_TEST(xatc);
_FIELD_TEST(xatc_spacing);
EEPROM_WRITE(xatc.spacing);
EEPROM_WRITE(xatc.start);
EEPROM_WRITE(xatc.z_offset);
Expand Down Expand Up @@ -1811,7 +1813,7 @@ void MarlinSettings::postprocess() {
// X Axis Twist Compensation
//
#if ENABLED(X_AXIS_TWIST_COMPENSATION)
_FIELD_TEST(xatc);
_FIELD_TEST(xatc_spacing);
EEPROM_READ(xatc.spacing);
EEPROM_READ(xatc.start);
EEPROM_READ(xatc.z_offset);
Expand Down

0 comments on commit c391e34

Please sign in to comment.