Переглянути джерело

Merge M11 fixes (PR#2394)

Richard Wackerbarth 10 роки тому
джерело
коміт
3b769753eb
3 змінених файлів з 8 додано та 10 видалено
  1. 2
    2
      Marlin/Marlin.h
  2. 6
    6
      Marlin/Marlin_main.cpp
  3. 0
    2
      Marlin/configurator/config/language.h

+ 2
- 2
Marlin/Marlin.h Переглянути файл

75
 #define SERIAL_PROTOCOL(x) MYSERIAL.print(x)
75
 #define SERIAL_PROTOCOL(x) MYSERIAL.print(x)
76
 #define SERIAL_PROTOCOL_F(x,y) MYSERIAL.print(x,y)
76
 #define SERIAL_PROTOCOL_F(x,y) MYSERIAL.print(x,y)
77
 #define SERIAL_PROTOCOLPGM(x) serialprintPGM(PSTR(x))
77
 #define SERIAL_PROTOCOLPGM(x) serialprintPGM(PSTR(x))
78
-#define SERIAL_PROTOCOLLN(x) do{ MYSERIAL.print(x),MYSERIAL.write('\n'); }while(0)
79
-#define SERIAL_PROTOCOLLNPGM(x) do{ serialprintPGM(PSTR(x)),MYSERIAL.write('\n'); }while(0)
78
+#define SERIAL_PROTOCOLLN(x) do{ MYSERIAL.print(x); SERIAL_EOL; }while(0)
79
+#define SERIAL_PROTOCOLLNPGM(x) do{ serialprintPGM(PSTR(x)); SERIAL_EOL; }while(0)
80
 
80
 
81
 
81
 
82
 extern const char errormagic[] PROGMEM;
82
 extern const char errormagic[] PROGMEM;

+ 6
- 6
Marlin/Marlin_main.cpp Переглянути файл

3636
 inline void gcode_M111() {
3636
 inline void gcode_M111() {
3637
   marlin_debug_flags = code_seen('S') ? code_value_short() : DEBUG_INFO|DEBUG_COMMUNICATION;
3637
   marlin_debug_flags = code_seen('S') ? code_value_short() : DEBUG_INFO|DEBUG_COMMUNICATION;
3638
   
3638
   
3639
-  SERIAL_ECHO_START;
3640
-  if (marlin_debug_flags & DEBUG_ECHO) SERIAL_ECHOLNPGM(MSG_DEBUG_ECHO);
3639
+  if (marlin_debug_flags & DEBUG_ECHO) {
3640
+    SERIAL_ECHO_START;
3641
+    SERIAL_ECHOLNPGM(MSG_DEBUG_ECHO);
3642
+  }
3641
   // FOR MOMENT NOT ACTIVE
3643
   // FOR MOMENT NOT ACTIVE
3642
   //if (marlin_debug_flags & DEBUG_INFO) SERIAL_ECHOLNPGM(MSG_DEBUG_INFO);
3644
   //if (marlin_debug_flags & DEBUG_INFO) SERIAL_ECHOLNPGM(MSG_DEBUG_INFO);
3643
   //if (marlin_debug_flags & DEBUG_ERRORS) SERIAL_ECHOLNPGM(MSG_DEBUG_ERRORS);
3645
   //if (marlin_debug_flags & DEBUG_ERRORS) SERIAL_ECHOLNPGM(MSG_DEBUG_ERRORS);
3644
   if (marlin_debug_flags & DEBUG_DRYRUN) {
3646
   if (marlin_debug_flags & DEBUG_DRYRUN) {
3647
+    SERIAL_ECHO_START;
3645
     SERIAL_ECHOLNPGM(MSG_DEBUG_DRYRUN);
3648
     SERIAL_ECHOLNPGM(MSG_DEBUG_DRYRUN);
3646
-    setTargetBed(0);
3647
-    for (int8_t cur_hotend = 0; cur_hotend < EXTRUDERS; ++cur_hotend) {
3648
-      setTargetHotend(0, cur_hotend);
3649
-    }
3649
+    disable_all_heaters();
3650
   }
3650
   }
3651
 }
3651
 }
3652
 
3652
 

+ 0
- 2
Marlin/configurator/config/language.h Переглянути файл

195
 #define MSG_KP                              " Kp: "
195
 #define MSG_KP                              " Kp: "
196
 #define MSG_KI                              " Ki: "
196
 #define MSG_KI                              " Ki: "
197
 #define MSG_KD                              " Kd: "
197
 #define MSG_KD                              " Kd: "
198
-#define MSG_OK_B                            "ok B:"
199
-#define MSG_OK_T                            "ok T:"
200
 #define MSG_AT                              " @:"
198
 #define MSG_AT                              " @:"
201
 #define MSG_PID_AUTOTUNE_FINISHED           MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
199
 #define MSG_PID_AUTOTUNE_FINISHED           MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
202
 #define MSG_PID_DEBUG                       " PID_DEBUG "
200
 #define MSG_PID_DEBUG                       " PID_DEBUG "

Завантаження…
Відмінити
Зберегти