From 9cf5b969717749baf4e7deacce8613845feb0169 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 15 Nov 2017 03:59:23 -0600 Subject: [PATCH] Fix M503 output for M145 Fixes #7978 --- Marlin/configuration_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/configuration_store.cpp b/Marlin/configuration_store.cpp index 9d15c31c3a..291fbca12a 100644 --- a/Marlin/configuration_store.cpp +++ b/Marlin/configuration_store.cpp @@ -1808,8 +1808,8 @@ void MarlinSettings::reset() { CONFIG_ECHO_START; SERIAL_ECHOLNPGM("Material heatup parameters:"); } - CONFIG_ECHO_START; for (uint8_t i = 0; i < COUNT(lcd_preheat_hotend_temp); i++) { + CONFIG_ECHO_START; SERIAL_ECHOPAIR(" M145 S", (int)i); SERIAL_ECHOPAIR(" H", TEMP_UNIT(lcd_preheat_hotend_temp[i])); SERIAL_ECHOPAIR(" B", TEMP_UNIT(lcd_preheat_bed_temp[i]));