PavelSindler %!s(int64=7) %!d(string=hai) anos
pai
achega
8e239ce76f
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  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