浏览代码

Reset LA10/15 state also when stopping a print

Based on f22fb2770bb278f71ad162b1abd8108633424f6c by @leptun
Yuri D'Elia 4 年之前
父节点
当前提交
b9ce572559
共有 1 个文件被更改,包括 7 次插入0 次删除
  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();