Kaynağa Gözat

Enable M0/M1 with Emergency Parser

Scott Lahteine 8 yıl önce
ebeveyn
işleme
a501f430eb
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp Dosyayı Görüntüle

352
 volatile bool wait_for_heatup = true;
352
 volatile bool wait_for_heatup = true;
353
 
353
 
354
 #if ENABLED(EMERGENCY_PARSER) && DISABLED(ULTIPANEL)
354
 #if ENABLED(EMERGENCY_PARSER) && DISABLED(ULTIPANEL)
355
-  wait_for_user = false;
355
+  volatile bool wait_for_user = false;
356
 #endif
356
 #endif
357
 
357
 
358
 const char errormagic[] PROGMEM = "Error:";
358
 const char errormagic[] PROGMEM = "Error:";
7010
     break;
7010
     break;
7011
 
7011
 
7012
     case 'M': switch (codenum) {
7012
     case 'M': switch (codenum) {
7013
-      #if ENABLED(ULTIPANEL)
7013
+      #if ENABLED(ULTIPANEL) || ENABLED(EMERGENCY_PARSER)
7014
         case 0: // M0 - Unconditional stop - Wait for user button press on LCD
7014
         case 0: // M0 - Unconditional stop - Wait for user button press on LCD
7015
         case 1: // M1 - Conditional stop - Wait for user button press on LCD
7015
         case 1: // M1 - Conditional stop - Wait for user button press on LCD
7016
           gcode_M0_M1();
7016
           gcode_M0_M1();

Loading…
İptal
Kaydet