Selaa lähdekoodia

Tweak extruder errors

Scott Lahteine 6 vuotta sitten
vanhempi
commit
7a075a5dc9
2 muutettua tiedostoa jossa 4 lisäystä ja 7 poistoa
  1. 2
    3
      Marlin/src/gcode/gcode.cpp
  2. 2
    4
      Marlin/src/module/tool_change.cpp

+ 2
- 3
Marlin/src/gcode/gcode.cpp Näytä tiedosto

@@ -65,9 +65,8 @@ int8_t GcodeSuite::get_target_extruder_from_command() {
65 65
     const int8_t e = parser.value_byte();
66 66
     if (e >= EXTRUDERS) {
67 67
       SERIAL_ECHO_START();
68
-      SERIAL_CHAR('M');
69
-      SERIAL_ECHO(parser.codenum);
70
-      SERIAL_ECHOLNPAIR(" " MSG_INVALID_EXTRUDER " ", e);
68
+      SERIAL_CHAR('M'); SERIAL_ECHO(parser.codenum);
69
+      SERIAL_ECHOLNPAIR(" " MSG_INVALID_EXTRUDER " ", int(e));
71 70
       return -1;
72 71
     }
73 72
     return e;

+ 2
- 4
Marlin/src/module/tool_change.cpp Näytä tiedosto

@@ -417,10 +417,8 @@
417 417
 
418 418
 inline void invalid_extruder_error(const uint8_t e) {
419 419
   SERIAL_ECHO_START();
420
-  SERIAL_CHAR('T');
421
-  SERIAL_ECHO_F(e, DEC);
422
-  SERIAL_CHAR(' ');
423
-  SERIAL_ECHOLNPGM(MSG_INVALID_EXTRUDER);
420
+  SERIAL_CHAR('T'); SERIAL_ECHO(int(e));
421
+  SERIAL_CHAR(' '); SERIAL_ECHOLNPGM(MSG_INVALID_EXTRUDER);
424 422
 }
425 423
 
426 424
 #if ENABLED(DUAL_X_CARRIAGE)

Loading…
Peruuta
Tallenna