From 64b9678e6b7eed6da01fd08bdd4ec227d74a6709 Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Mon, 6 Mar 2017 12:14:08 +0100 Subject: [PATCH] G80 - pinda heating and autohome added --- Firmware/Marlin_main.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index c85d6683d..8a944aa77 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -2879,6 +2879,8 @@ void process_commands() case_G80: { int8_t verbosity_level = 0; + static bool run = false; + if (code_seen('V')) { // Just 'V' without a number counts as V1. char c = strchr_pointer[1]; @@ -2893,7 +2895,15 @@ void process_commands() enquecommand_front_P((PSTR("G28 W0"))); break; } - temp_compensation_start(); + + if (run == false) { + temp_compensation_start(); + run = true; + repeatcommand_front(); // repeat G80 with all its parameters + enquecommand_front_P((PSTR("G28 W0"))); + break; + } + run = false; // Save custom message state, set a new custom message state to display: Calibrating point 9. bool custom_message_old = custom_message;