PavelSindler 7 anni fa
parent
commit
8e239ce76f
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  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