Browse Source

Follow RepRap Wiki G-codes documentation
M120 is Enable endstops
M121 is disable endstops
I guess this was just a typo issue.

3d-gussner 4 years ago
parent
commit
21dcfb23f4
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Firmware/Marlin_main.cpp

+ 4 - 4
Firmware/Marlin_main.cpp

@@ -6366,16 +6366,16 @@ Sigma_Exit:
       lcd_setstatus(strchr_pointer + 5);
       break;*/
 
-    //! ### M120 - Disable endstops
+    //! ### M120 - Ensable endstops
     // ----------------------------------------
     case 120:
-      enable_endstops(false) ;
+      enable_endstops(true) ;
       break;
 
-    //! ### M121 - Enable endstops
+    //! ### M121 - Disable endstops
     // ----------------------------------------
     case 121:
-      enable_endstops(true) ;
+      enable_endstops(false) ;
       break;
 
     //! ### M119 - Get endstop states