Fix M117 string offset

This commit is contained in:
Yuri D'Elia 2022-12-22 15:01:35 +01:00 committed by DRracer
parent 9105573ac9
commit 74609009ca
1 changed files with 2 additions and 2 deletions

View File

@ -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;