소스 검색

Print an error on unknown D-codes

This follows the same convention of M/G codes, so that the user knowns
that the D-code has been either handled or ignored.
Yuri D'Elia 2 년 전
부모
커밋
1888c783cb
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      Firmware/Marlin_main.cpp

+ 3 - 0
Firmware/Marlin_main.cpp

@@ -9521,6 +9521,9 @@ Sigma_Exit:
 #endif //FILAMENT_SENSOR
 
 #endif //DEBUG_DCODES
+
+    default:
+        printf_P(PSTR("Unknown D code: %s\n"), cmdbuffer + bufindr + CMDHDRSIZE);
 	}
   }