Browse Source

Merge M11 fixes (PR#2394)

Richard Wackerbarth 10 years ago
parent
commit
3b769753eb
3 changed files with 8 additions and 10 deletions
  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 View File

@@ -75,8 +75,8 @@ typedef unsigned long millis_t;
75 75
 #define SERIAL_PROTOCOL(x) MYSERIAL.print(x)
76 76
 #define SERIAL_PROTOCOL_F(x,y) MYSERIAL.print(x,y)
77 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 82
 extern const char errormagic[] PROGMEM;

+ 6
- 6
Marlin/Marlin_main.cpp View File

@@ -3636,17 +3636,17 @@ inline void gcode_M109() {
3636 3636
 inline void gcode_M111() {
3637 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 3643
   // FOR MOMENT NOT ACTIVE
3642 3644
   //if (marlin_debug_flags & DEBUG_INFO) SERIAL_ECHOLNPGM(MSG_DEBUG_INFO);
3643 3645
   //if (marlin_debug_flags & DEBUG_ERRORS) SERIAL_ECHOLNPGM(MSG_DEBUG_ERRORS);
3644 3646
   if (marlin_debug_flags & DEBUG_DRYRUN) {
3647
+    SERIAL_ECHO_START;
3645 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 View File

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

Loading…
Cancel
Save