소스 검색

Tweak extruder errors

Scott Lahteine 6 년 전
부모
커밋
7a075a5dc9
2개의 변경된 파일4개의 추가작업 그리고 7개의 파일을 삭제
  1. 2
    3
      Marlin/src/gcode/gcode.cpp
  2. 2
    4
      Marlin/src/module/tool_change.cpp

+ 2
- 3
Marlin/src/gcode/gcode.cpp 파일 보기

65
     const int8_t e = parser.value_byte();
65
     const int8_t e = parser.value_byte();
66
     if (e >= EXTRUDERS) {
66
     if (e >= EXTRUDERS) {
67
       SERIAL_ECHO_START();
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
       return -1;
70
       return -1;
72
     }
71
     }
73
     return e;
72
     return e;

+ 2
- 4
Marlin/src/module/tool_change.cpp 파일 보기

417
 
417
 
418
 inline void invalid_extruder_error(const uint8_t e) {
418
 inline void invalid_extruder_error(const uint8_t e) {
419
   SERIAL_ECHO_START();
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
 #if ENABLED(DUAL_X_CARRIAGE)
424
 #if ENABLED(DUAL_X_CARRIAGE)

Loading…
취소
저장