Reset LA10/15 state also when stopping a print
Based on f22fb2770b by @leptun
This commit is contained in:
parent
0b666ee733
commit
b9ce572559
|
|
@ -51,6 +51,10 @@
|
||||||
#include "adc.h"
|
#include "adc.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#ifndef LA_NOCOMPAT
|
||||||
|
#include "la10compat.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int scrollstuff = 0;
|
int scrollstuff = 0;
|
||||||
char longFilenameOLD[LONG_FILENAME_LENGTH];
|
char longFilenameOLD[LONG_FILENAME_LENGTH];
|
||||||
|
|
@ -7336,6 +7340,9 @@ void lcd_print_stop()
|
||||||
#ifdef MESH_BED_LEVELING
|
#ifdef MESH_BED_LEVELING
|
||||||
mbl.active = false; //also prevents undoing the mbl compensation a second time in the second planner_abort_hard()
|
mbl.active = false; //also prevents undoing the mbl compensation a second time in the second planner_abort_hard()
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef LA_NOCOMPAT
|
||||||
|
la10c_reset();
|
||||||
|
#endif
|
||||||
|
|
||||||
lcd_setstatuspgm(_T(MSG_PRINT_ABORTED));
|
lcd_setstatuspgm(_T(MSG_PRINT_ABORTED));
|
||||||
stoptime = _millis();
|
stoptime = _millis();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue