From 1888c783cb710f715866c43d823c343eb70410de Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Tue, 29 Jun 2021 11:32:40 +0200 Subject: [PATCH] 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. --- Firmware/Marlin_main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 6de0e3df..68e4ad4d 100755 --- a/Firmware/Marlin_main.cpp +++ b/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); } }