Browse Source

Refresh screen on M22 (detach) (#20958)

Tanguy Pruvot 4 years ago
parent
commit
7626ef57b9
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/gcode/sd/M21_M22.cpp

+ 2
- 2
Marlin/src/gcode/sd/M21_M22.cpp View File

@@ -26,6 +26,7 @@
26 26
 
27 27
 #include "../gcode.h"
28 28
 #include "../../sd/cardreader.h"
29
+#include "../../lcd/marlinui.h"
29 30
 
30 31
 /**
31 32
  * M21: Init SD Card
@@ -36,9 +37,8 @@ void GcodeSuite::M21() { card.mount(); }
36 37
  * M22: Release SD Card
37 38
  */
38 39
 void GcodeSuite::M22() {
39
-
40 40
   if (!IS_SD_PRINTING()) card.release();
41
-
41
+  IF_ENABLED(TFT_COLOR_UI, ui.refresh(LCDVIEW_CALL_REDRAW_NEXT));
42 42
 }
43 43
 
44 44
 #endif // SDSUPPORT

Loading…
Cancel
Save