Переглянути джерело

Revert "Extended comment explaining M42 usage"

This reverts commit 01541ee64c.
Bas Spaans 12 роки тому
джерело
коміт
00fed0a703
1 змінених файлів з 10 додано та 18 видалено
  1. 10
    18
      Marlin/Marlin_main.cpp

+ 10
- 18
Marlin/Marlin_main.cpp Переглянути файл

88
 // M29  - Stop SD write
88
 // M29  - Stop SD write
89
 // M30  - Delete file from SD (M30 filename.g)
89
 // M30  - Delete file from SD (M30 filename.g)
90
 // M31  - Output time since last M109 or SD card start to serial
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
 // M80  - Turn on Power Supply
92
 // M80  - Turn on Power Supply
93
 // M81  - Turn off Power Supply
93
 // M81  - Turn off Power Supply
94
 // M82  - Set E codes absolute (default)
94
 // M82  - Set E codes absolute (default)
124
 // M500 - stores paramters in EEPROM
124
 // M500 - stores paramters in EEPROM
125
 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).  
125
 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).  
126
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
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
 // M540 - Use S[0|1] to enable or disable the stop SD card print on endstop hit (requires ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
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
 // M600 - Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
129
 // M600 - Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
131
 // M907 - Set digital trimpot motor current using axis codes.
130
 // M907 - Set digital trimpot motor current using axis codes.
959
       autotempShutdown();
958
       autotempShutdown();
960
       }
959
       }
961
       break;
960
       break;
962
-    case 42: //M42 -Change pin status via gcode 
961
+    case 42: //M42 -Change pin status via gcode
963
       if (code_seen('S'))
962
       if (code_seen('S'))
964
       {
963
       {
965
         int pin_status = code_value();
964
         int pin_status = code_value();
1500
     {
1499
     {
1501
         Config_PrintSettings();
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
     #endif
1509
     #endif
1518
     #ifdef FILAMENTCHANGEENABLE
1510
     #ifdef FILAMENTCHANGEENABLE
1519
     case 600: //Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
1511
     case 600: //Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]

Завантаження…
Відмінити
Зберегти