Apply loop shorthand macros (#17159)
This commit is contained in:
@@ -583,7 +583,7 @@ void MarlinSettings::postprocess() {
|
||||
|
||||
#if HAS_HOTEND_OFFSET
|
||||
// Skip hotend 0 which must be 0
|
||||
for (uint8_t e = 1; e < HOTENDS; e++)
|
||||
LOOP_S_L_N(e, 1, HOTENDS)
|
||||
EEPROM_WRITE(hotend_offset[e]);
|
||||
#endif
|
||||
}
|
||||
@@ -1420,7 +1420,7 @@ void MarlinSettings::postprocess() {
|
||||
{
|
||||
#if HAS_HOTEND_OFFSET
|
||||
// Skip hotend 0 which must be 0
|
||||
for (uint8_t e = 1; e < HOTENDS; e++)
|
||||
LOOP_S_L_N(e, 1, HOTENDS)
|
||||
EEPROM_READ(hotend_offset[e]);
|
||||
#endif
|
||||
}
|
||||
@@ -2915,7 +2915,7 @@ void MarlinSettings::reset() {
|
||||
#if HAS_HOTEND_OFFSET
|
||||
CONFIG_ECHO_HEADING("Hotend offsets:");
|
||||
CONFIG_ECHO_START();
|
||||
for (uint8_t e = 1; e < HOTENDS; e++) {
|
||||
LOOP_S_L_N(e, 1, HOTENDS) {
|
||||
SERIAL_ECHOPAIR_P(
|
||||
PSTR(" M218 T"), (int)e,
|
||||
SP_X_STR, LINEAR_UNIT(hotend_offset[e].x),
|
||||
|
||||
Reference in New Issue
Block a user