Browse Source

Fix the M117 (display message on LCD) when used over USB with checksums.

daid303 12 years ago
parent
commit
b99a928a80
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      Marlin/Marlin_main.cpp

+ 4
- 1
Marlin/Marlin_main.cpp View File

@@ -1218,7 +1218,10 @@ void process_commands()
1218 1218
       SERIAL_PROTOCOLPGM(MSG_M115_REPORT);
1219 1219
       break;
1220 1220
     case 117: // M117 display message
1221
-      lcd_setstatus(cmdbuffer[bufindr]+5);
1221
+      starpos = (strchr(strchr_pointer + 5,'*'));
1222
+      if(starpos!=NULL)
1223
+        *(starpos-1)='\0';
1224
+      lcd_setstatus(strchr_pointer + 5);
1222 1225
       break;
1223 1226
     case 114: // M114
1224 1227
       SERIAL_PROTOCOLPGM("X:");

Loading…
Cancel
Save