Kaynağa Gözat

Refresh screen on M22 (detach) (#20958)

Tanguy Pruvot 4 yıl önce
ebeveyn
işleme
7626ef57b9
No account linked to committer's email address
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      Marlin/src/gcode/sd/M21_M22.cpp

+ 2
- 2
Marlin/src/gcode/sd/M21_M22.cpp Dosyayı Görüntüle

26
 
26
 
27
 #include "../gcode.h"
27
 #include "../gcode.h"
28
 #include "../../sd/cardreader.h"
28
 #include "../../sd/cardreader.h"
29
+#include "../../lcd/marlinui.h"
29
 
30
 
30
 /**
31
 /**
31
  * M21: Init SD Card
32
  * M21: Init SD Card
36
  * M22: Release SD Card
37
  * M22: Release SD Card
37
  */
38
  */
38
 void GcodeSuite::M22() {
39
 void GcodeSuite::M22() {
39
-
40
   if (!IS_SD_PRINTING()) card.release();
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
 #endif // SDSUPPORT
44
 #endif // SDSUPPORT

Loading…
İptal
Kaydet