Browse Source

Fix M117 string offset

Yuri D'Elia 2 năm trước cách đây
mục cha
commit
74609009ca
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Firmware/Marlin_main.cpp

+ 2 - 2
Firmware/Marlin_main.cpp

@@ -6554,8 +6554,8 @@ Sigma_Exit:
     ### M117 - Display Message <a href="https://reprap.org/wiki/G-code#M117:_Display_Message">M117: Display Message</a>
     */
     case 117: {
-        const char *src = strchr_pointer;
-        lcd_setstatus(*src? src + 1: src);
+        const char *src = strchr_pointer + 4; // "M117"
+        lcd_setstatus(*src == ' '? src + 1: src);
         custom_message_type = CustomMsg::M117;
     }
     break;