From b9ce57255904e70d16e167c6e5a156ae0398806f Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Tue, 28 Apr 2020 17:35:28 +0200 Subject: [PATCH] Reset LA10/15 state also when stopping a print Based on f22fb2770bb278f71ad162b1abd8108633424f6c by @leptun --- Firmware/ultralcd.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index eeda00d1..275145d7 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -51,6 +51,10 @@ #include "adc.h" #include "config.h" +#ifndef LA_NOCOMPAT +#include "la10compat.h" +#endif + int scrollstuff = 0; char longFilenameOLD[LONG_FILENAME_LENGTH]; @@ -7336,6 +7340,9 @@ void lcd_print_stop() #ifdef MESH_BED_LEVELING mbl.active = false; //also prevents undoing the mbl compensation a second time in the second planner_abort_hard() #endif +#ifndef LA_NOCOMPAT + la10c_reset(); +#endif lcd_setstatuspgm(_T(MSG_PRINT_ABORTED)); stoptime = _millis();