Browse Source

changed M220

PavelSindler 7 years ago
parent
commit
8e239ce76f
1 changed files with 6 additions and 2 deletions
  1. 6 2
      Firmware/Marlin_main.cpp

+ 6 - 2
Firmware/Marlin_main.cpp

@@ -6080,11 +6080,15 @@ Sigma_Exit:
       SERIAL_ECHOLN("");
     }break;
     #endif
+
     case 220: // M220 S<factor in percent>- set speed factor override percentage
     {
-      if(code_seen('S'))
-      {
+	  if (code_seen('B')) //backup current speed factor
+	  {
 		saved_feedmultiply_mm = feedmultiply;
+	  }
+      if(code_seen('S'))
+      {		
         feedmultiply = code_value() ;
       }
 	  if (code_seen('R')) { //restore previous feedmultiply