Browse Source

Reset LA10/15 state also when stopping a print

Based on f22fb2770bb278f71ad162b1abd8108633424f6c by @leptun
Yuri D'Elia 4 years ago
parent
commit
b9ce572559
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Firmware/ultralcd.cpp

+ 7 - 0
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();