Ver código fonte

Revert "Extended comment explaining M42 usage"

This reverts commit 01541ee64c.
Bas Spaans 12 anos atrás
pai
commit
00fed0a703
1 arquivos alterados com 10 adições e 18 exclusões
  1. 10
    18
      Marlin/Marlin_main.cpp

+ 10
- 18
Marlin/Marlin_main.cpp Ver arquivo

@@ -88,7 +88,7 @@
88 88
 // M29  - Stop SD write
89 89
 // M30  - Delete file from SD (M30 filename.g)
90 90
 // M31  - Output time since last M109 or SD card start to serial
91
-// M42  - Change pin status via gcode. Use M42 Px Sy to set pin x to value y, when omitting Px the onboard led will be used.
91
+// M42  - Change pin status via gcode
92 92
 // M80  - Turn on Power Supply
93 93
 // M81  - Turn off Power Supply
94 94
 // M82  - Set E codes absolute (default)
@@ -124,8 +124,7 @@
124 124
 // M500 - stores paramters in EEPROM
125 125
 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).  
126 126
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
127
-// M503 - print the current settings (from memory not from eeprom)
128
-
127
+// M503 - print the current settings (from memory not from eeprom)
129 128
 // M540 - Use S[0|1] to enable or disable the stop SD card print on endstop hit (requires ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
130 129
 // M600 - Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
131 130
 // M907 - Set digital trimpot motor current using axis codes.
@@ -959,7 +958,7 @@ void process_commands()
959 958
       autotempShutdown();
960 959
       }
961 960
       break;
962
-    case 42: //M42 -Change pin status via gcode 
961
+    case 42: //M42 -Change pin status via gcode
963 962
       if (code_seen('S'))
964 963
       {
965 964
         int pin_status = code_value();
@@ -1500,20 +1499,13 @@ void process_commands()
1500 1499
     {
1501 1500
         Config_PrintSettings();
1502 1501
     }
1503
-    break;
1504
-
1505
-    #ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
1506
-
1507
-    case 540:
1508
-
1509
-    {
1510
-
1511
-        if(code_seen('S')) abort_on_endstop_hit = code_value() > 0;
1512
-
1513
-    }
1514
-
1515
-    break;
1516
-
1502
+    break;
1503
+    #ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
1504
+    case 540:
1505
+    {
1506
+        if(code_seen('S')) abort_on_endstop_hit = code_value() > 0;
1507
+    }
1508
+    break;
1517 1509
     #endif
1518 1510
     #ifdef FILAMENTCHANGEENABLE
1519 1511
     case 600: //Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]

Carregando…
Cancelar
Salvar