Merge pull request #4690 from 3d-gussner/MK3_Documentation

Update doxygen documentation remove white spaces
This commit is contained in:
3d-gussner 2024-05-30 14:43:29 +02:00 committed by GitHub
commit 3c7ae1e9fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
110 changed files with 1758 additions and 1711 deletions

View File

@ -348,7 +348,6 @@ void dcode_4()
- The hex address needs to be lowercase without the 0 before the x
- Count is decimal
- The hex data needs to be lowercase
*/
void dcode_5()
{

View File

@ -1870,7 +1870,6 @@ void loop()
}
}
else if((*ptr == CMDBUFFER_CURRENT_TYPE_USB_WITH_LINENR) && !IS_SD_PRINTING){
cli();
*ptr ++ = CMDBUFFER_CURRENT_TYPE_TO_BE_REMOVED;
// and one for each command to previous block in the planner queue.
@ -1942,7 +1941,6 @@ static int setup_for_endstop_move(bool enable_endstops_now = true) {
int l_feedmultiply = feedmultiply;
feedmultiply = 100;
previous_millis_cmd.start();
enable_endstops(enable_endstops_now);
return l_feedmultiply;
}
@ -1952,7 +1950,6 @@ static void clean_up_after_endstop_move(int original_feedmultiply) {
#ifdef ENDSTOPS_ONLY_FOR_HOMING
enable_endstops(false);
#endif
feedrate = saved_feedrate;
feedmultiply = original_feedmultiply;
previous_millis_cmd.start();
@ -3869,19 +3866,27 @@ extern uint8_t st_backlash_y;
//!@n G1 - Coordinated Movement X Y Z E
//!@n G2 - CW ARC
//!@n G3 - CCW ARC
//!@n G4 - Dwell S<seconds> or P<milliseconds>
//!@n G10 - retract filament according to settings of M207
//!@n G11 - retract recover filament according to settings of M208
//!@n G28 - Home all Axes
//!@n G29 - Detailed Z-Probe, probes the bed at 3 or more points. Will fail if you haven't homed yet.
//!@n G30 - Single Z Probe, probes bed at current XY location.
//!@n G31 - Dock sled (Z_PROBE_SLED only)
//!@n G32 - Undock sled (Z_PROBE_SLED only)
//!@n G80 - Automatic mesh bed leveling
//!@n G4 - Dwell
//!@n G10 - Retract
//!@n G11 - Retract recover
//!@n G21 - Sets Units to Millimters
//!@n G28 - Home all Axes one at a time
//!@n G29 - Detailed Z-Probe
//!@n G30 - Single Z Probe
//!@n G31 - Dock the sled
//!@n G32 - Undock sled
//!@n G75 - Print temperature interpolation
//!@n G76 - PINDA probe temperature calibration
//!@n G80 - Mesh-based Z probe
//!@n G81 - Mesh bed leveling status
//!@n G86 - Disable babystep correction after home
//!@n G87 - Enable babystep correction after home
//!@n G88 - Reserved
//!@n G90 - Use Absolute Coordinates
//!@n G91 - Use Relative Coordinates
//!@n G92 - Set current position to coordinates given
//!@n G98 - Activate farm mode
//!@n G99 - Deactivate farm mode
//!
//!@n M Codes
//!@n M0 - Unconditional stop - Wait for user to press a button on the LCD
@ -3897,98 +3902,117 @@ extern uint8_t st_backlash_y;
//!@n M26 - Set SD position in bytes (M26 S12345)
//!@n M27 - Report SD print status
//!@n M28 - Start SD write (M28 filename.g)
//!@n M29 - Stop SD write
//!@n M29 - Stop SD write (not active)
//!@n M30 - Delete file from SD (M30 filename.g)
//!@n M31 - Output time since last M109 or SD card start to serial
//!@n M32 - Select file and start SD print (Can be used _while_ printing from SD card files):
//! syntax "M32 /path/filename#", or "M32 S<startpos bytes> !filename#"
//! Call gcode file : "M32 P !filename#" and return to caller file after finishing (similar to #include).
//! The '#' is necessary when calling from within sd files, as it stops buffer prereading
//!@n 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.
//!@n M73 - Show percent done and print time remaining
//!@n M44 - Reset the bed skew and offset calibration
//!@n M45 - Bed skew and offset with manual Z up
//!@n M46 - Show the assigned IP address
//!@n M47 - Show end stops dialog on the display (Not with TMC2130)
//!@n M72 - Set/get Printer State
//!@n M73 - M73 - Set/get print progress
//!@n M75 - Start the print job timer
//!@n M76 - Pause the print job timer
//!@n M77 - Stop the print job timer
//!@n M78 - Show statistical information about the print jobs
//!@n M79 - Start host timer
//!@n M80 - Turn on Power Supply
//!@n M81 - Turn off Power Supply
//!@n M82 - Set E codes absolute (default)
//!@n M83 - Set E codes relative while in Absolute Coordinates (G90) mode
//!@n M83 - Set E axis to relative mode
//!@n M84 - Disable steppers until next move,
//! or use S<seconds> to specify an inactivity timeout, after which the steppers will be disabled. S0 to disable the timeout.
//!@n M85 - Set inactivity shutdown timer with parameter S<seconds>. To disable set zero (default)
//!@n M86 - Set safety timer expiration time with parameter S<seconds>; M86 S0 will disable safety timer
//!@n M92 - Set axis_steps_per_mm - same syntax as G92
//!@n M85 - Set max inactive time
//!@n M86 - Set safety timer expiration time
//!@n M92 - Set Axis steps-per-unit
//!@n M104 - Set extruder target temp
//!@n M105 - Read current temp
//!@n M106 - Fan on
//!@n M105 - Report temperatures
//!@n M106 - Set fan speed
//!@n M107 - Fan off
//!@n M109 - Sxxx Wait for extruder current temp to reach target temp. Waits only when heating
//! Rxxx Wait for extruder current temp to reach target temp. Waits when heating and cooling
//! IF AUTOTEMP is enabled, S<mintemp> B<maxtemp> F<factor>. Exit autotemp by any M109 without F
//!@n M109 - M109 - Wait for extruder temperature
//!@n M110 - Set Line number
//!@n M112 - Emergency stop
//!@n M113 - Get or set the timeout interval for Host Keepalive "busy" messages
//!@n M114 - Output current position to serial port
//!@n M115 - Capabilities string
//!@n M117 - display message
//!@n M113 - Get or set host keep-alive interval
//!@n M114 - Get current position
//!@n M115 - Get Firmware Version and Capabilities
//!@n M117 - Display Message
//!@n M118 - Serial print
//!@n M119 - Output Endstop status to serial port
//!@n M119 - Get endstop states
//!@n M120 - Enable endstops
//!@n M121 - Disable endstops
//!@n M123 - Tachometer value
//!@n M126 - Solenoid Air Valve Open (BariCUDA support by jmil)
//!@n M127 - Solenoid Air Valve Closed (BariCUDA vent to atmospheric pressure by jmil)
//!@n M128 - EtoP Open (BariCUDA EtoP = electricity to air pressure transducer by jmil)
//!@n M129 - EtoP Closed (BariCUDA EtoP = electricity to air pressure transducer by jmil)
//!@n M125 - Pause print
//!@n M140 - Set bed target temp
//!@n M150 - Set BlinkM Color Output R: Red<0-255> U(!): Green<0-255> B: Blue<0-255> over i2c, G for green does not work.
//!@n M150 - Set RGB(W) Color (disabled)
//!@n M155 - Automatically send temperatures, fan speeds, position
//!@n M190 - Sxxx Wait for bed current temp to reach target temp. Waits only when heating
//! Rxxx Wait for bed current temp to reach target temp. Waits when heating and cooling
//!@n M200 D<millimeters>- set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters).
//!@n M201 - Set max acceleration in units/s^2 for print moves (M201 X1000 Y1000)
//!@n M202 - Set max acceleration in units/s^2 for travel moves (M202 X1000 Y1000) Unused in Marlin!!
//!@n M203 - Set maximum feedrate that your machine can sustain (M203 X200 Y200 Z300 E10000) in mm/sec
//!@n M204 - Set default acceleration: S normal moves T filament only moves (M204 S3000 T7000) in mm/sec^2 also sets minimum segment time in ms (B20000) to prevent buffer under-runs and M20 minimum feedrate
//!@n M205 - advanced settings: minimum travel speed S=while printing T=travel only, B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk, E=maximum E jerk
//!@n M206 - set additional homing offset
//!@n M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop], stays in mm regardless of M200 setting
//!@n M208 - set recover=unretract length S[positive mm surplus to the M207 S*] F[feedrate mm/sec]
//!@n M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction.
//!@n M214 - Set Arc Parameters (Use M500 to store in eeprom) P<MM_PER_ARC_SEGMENT> S<MIN_MM_PER_ARC_SEGMENT> R<MIN_ARC_SEGMENTS> F<ARC_SEGMENTS_PER_SEC>
//!@n M220 S<factor in percent>- set speed factor override percentage
//!@n M221 S<factor in percent>- set extrude factor override percentage
//!@n M226 P<pin number> S<pin state>- Wait until the specified pin reaches the state required
//!@n M240 - Trigger a camera to take a photograph
//!@n M190 - Wait for bed temperature
//!@n M200 - Set filament diameter
//!@n M201 - Set Print Max Acceleration
//!@n M203 - M203 - Set Max Feedrate
//!@n M204 - Acceleration settings
//!@n M205 - Set advanced settings
//!@n M206 - Set additional homing offsets
//!@n M207 - Set firmware retraction
//!@n M208 - Set retract recover length
//!@n M209 - Enable/disable automatict retract
//!@n M214 - Set Arc configuration values
//!@n M220 - Set feedrate percentage
//!@n M221 - Set extrude factor override percentage
//!@n M226 - Wait for Pin state
//!@n M240 - Trigger camera
//!@n M250 - Set LCD contrast C<contrast value> (value 0..63)
//!@n M280 - set servo position absolute. P: servo index, S: angle or microseconds
//!@n M300 - Play beep sound S<frequency Hz> P<duration ms>
//!@n M301 - Set PID parameters P I and D
//!@n M302 - Allow cold extrudes, or set the minimum extrude S<temperature>.
//!@n M303 - PID relay autotune S<temperature> sets the target temperature. (default target temperature = 150C)
//!@n M304 - Set bed PID parameters P I and D
//!@n M280 - Set/Get servo position (not active)
//!@n M300 - Play tone
//!@n M301 - Set hotend PID
//!@n M302 - Allow cold extrude, or set minimum extrude temperature
//!@n M303 - M303 - PID autotune
//!@n M304 - Set bed PID
//!@n M310 - Thermal model settings
//!@n M400 - Finish all moves
//!@n M401 - Lower z-probe if present
//!@n M402 - Raise z-probe if present
//!@n M404 - N<dia in mm> Enter the nominal filament width (3mm, 1.75mm ) or will display nominal filament width without parameters
//!@n M405 - Turn on Filament Sensor extrusion control. Optional D<delay in cm> to set delay in centimeters between sensor and extruder
//!@n M406 - Turn off Filament Sensor extrusion control
//!@n M420 - Mesh bed leveling status
//!@n M500 - stores parameters in EEPROM
//!@n M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
//!@n M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
//!@n M503 - print the current settings (from memory not from EEPROM)
//!@n M509 - force language selection on next restart
//!@n M540 - Use S[0|1] to enable or disable the stop SD card print on endstop hit (requires ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
//!@n M552 - Set IP address
//!@n M600 - Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal]
//!@n M605 - Set dual x-carriage movement mode: S<mode> [ X<duplication x-offset> R<duplication temp offset> ]
//!@n M850 - Set sheet data S[id] Z[offset] L[label] B[bed_temp] P[PINDA_TEMP]
//!@n M860 - Wait for PINDA thermistor to reach target temperature.
//!@n M861 - Set / Read PINDA temperature compensation offsets
//!@n M900 - Set LIN_ADVANCE options, if enabled. See Configuration_adv.h for details.
//!@n M907 - Set digital trimpot motor current using axis codes.
//!@n M908 - Control digital trimpot directly.
//!@n M350 - Set microstepping mode.
//!@n M351 - Toggle MS1 MS2 pins directly.
//!
//!@n M351 - Toggle Microstep Pins
//!@n M400 - Wait for all moves to finish
//!@n M403 - Set filament type
//!@n M405 - Filament Sensor on
//!@n M406 - Filament Sensor off
//!@n M420 - Mesh bed leveling status
//!@n M500 - Store settings in EEPROM
//!@n M501 - Read settings from EEPROM
//!@n M502 - Revert all settings to factory default
//!@n M503 - Repport all settings currently in memory
//!@n M509 - Force language selection
//!@n M540 - Abort print on endstop hit (enable/disable)
//!@n M552 - Set IP address
//!@n M600 - Initiate Filament change procedure
//!@n M601 - Pause print
//!@n M602 - Resume print
//!@n M603 - Stop print
//!@n M701 - Load filament to extruder
//!@n M702 - Unload filament
//!@n M704 - Preload to MMU
//!@n M705 - Eject filament
//!@n M706 - Cut filament
//!@n M707 - Read from MMU register
//!@n M708 - Write to MMU register
//!@n M709 - MMU power & reset
//!@n M850 - Sheet parameters
//!@n M851 - Set Z-Probe Offset
//!@n M860 - Wait for extruder temperature (PINDA)
//!@n M861 - Set/Get PINDA temperature compensation offsets
//!@n M862 - Print checking
//!@n M900 - Set Linear advance options
//!@n M907 - Set digital trimpot motor current in mA using axis codes
//!@n M908 - Control digital trimpot directly
//!@n M910 - TMC2130 init
//!@n M911 - Set TMC2130 holding currents
//!@n M912 - Set TMC2130 running currents
//!@n M913 - Print TMC2130 currents
//!@n M914 - Set TMC2130 normal mode
//!@n M915 - Set TMC2130 silent mode
//!@n M916 - Set TMC2130 Stallguard sensitivity threshold
//!@n M917 - Set TMC2130 PWM amplitude offset (pwm_ampl)
//!@n M918 - Set TMC2130 PWM amplitude gradient (pwm_grad)
//!@n M928 - Start SD logging (M928 filename.g) - ended by M29
//!@n M999 - Restart after being stopped by error
//! <br><br>
/** @defgroup marlin_main Marlin main */
@ -4145,7 +4169,7 @@ void process_commands()
else if(strncmp_P(CMDBUFFER_CURRENT_STRING, PSTR("PRUSA"), 5) == 0) {
/*!
---------------------------------------------------------------------------------
### PRUSA - Internal command set <a href="https://reprap.org/wiki/G-code#G98:_Activate_farm_mode">G98: Activate farm mode - Notes</a>
### PRUSA - Internal command set
Set of internal PRUSA commands
#### Usage
@ -4417,7 +4441,6 @@ void process_commands()
case 21:
break; //Doing nothing. This is just to prevent serial UNKOWN warnings.
/*!
### G28 - Home all Axes one at a time <a href="https://reprap.org/wiki/G-code#G28:_Move_to_Origin_.28Home.29">G28: Move to Origin (Home)</a>
Using `G28` without any parameters will perfom homing of all axes AND mesh bed leveling, while `G28 W` will just home all axes (no mesh bed leveling).
@ -4460,7 +4483,6 @@ void process_commands()
#ifdef ENABLE_AUTO_BED_LEVELING
/*!
### G29 - Detailed Z-Probe <a href="https://reprap.org/wiki/G-code#G29:_Detailed_Z-Probe">G29: Detailed Z-Probe</a>
In Prusa Firmware this G-code is deactivated by default, must be turned on in the source code.
@ -5111,7 +5133,6 @@ void process_commands()
#endif // ENABLE_MESH_BED_LEVELING
/*!
### G90 - Switch off relative mode <a href="https://reprap.org/wiki/G-code#G90:_Set_to_Absolute_Positioning">G90: Set to Absolute Positioning</a>
All coordinates from now on are absolute relative to the origin of the machine. E axis is left intact.
@ -5184,7 +5205,6 @@ void process_commands()
/*!
---------------------------------------------------------------------------------
# M Commands
*/
else if(*CMDBUFFER_CURRENT_STRING == 'M')
@ -5415,7 +5435,14 @@ void process_commands()
/*!
### M32 - Select file and start SD print <a href="https://reprap.org/wiki/G-code#M32:_Select_file_and_start_SD_print">M32: Select file and start SD print</a>
@todo What are the parameters P and S for in M32?
#### Usage
M32 [ P | S ]
#### Parameters
- `P` - Sub-Program flag
- `S` - Starting file offset
*/
case 32:
{
@ -5500,7 +5527,6 @@ void process_commands()
#### Parameters
- `P` - Pin number.
- `S` - Pin value. If the pin is analog, values are from 0 to 255. If the pin is digital, values are from 0 to 1.
*/
case 42:
if (code_seen('S'))
@ -5555,9 +5581,11 @@ void process_commands()
#### Usage
M45 [ V ]
#### Parameters
- `V` - Verbosity level 1, 10 and 20 (low, mid, high). Only when SUPPORT_VERBOSITY is defined. Optional.
- `Z` - If it is provided, only Z calibration will run. Otherwise full calibration is executed.
*/
case 45: // M45: Prusa3D: bed skew and offset with manual Z up
{
@ -5657,7 +5685,6 @@ void process_commands()
This function assumes the bed has been homed. Specifically, that a G28 command as been issued prior to invoking the M48 Z-Probe repeatability measurement function. Any information generated by a prior G29 Bed leveling command will be lost and needs to be regenerated.
The number of samples will default to 10 if not specified. You can use upper or lower case letters for any of the options EXCEPT n. n must be in lower case because Marlin uses a capital N for its communication protocol and will get horribly confused if you send it a capital N.
@todo Why would you check for both uppercase and lowercase? Seems wasteful.
#### Usage
@ -5684,7 +5711,7 @@ void process_commands()
double X_current, Y_current, Z_current;
double X_probe_location, Y_probe_location, Z_start_location, ext_position;
if (code_seen('V') || code_seen('v')) {
if (code_seen('V')) {
verbose_level = code_value();
if (verbose_level<0 || verbose_level>4 ) {
SERIAL_PROTOCOLPGM("?Verbose Level not plausable.\n");
@ -6167,7 +6194,7 @@ Sigma_Exit:
### M109 - Wait for extruder temperature <a href="https://reprap.org/wiki/G-code#M109:_Set_Extruder_Temperature_and_Wait">M109: Set Extruder Temperature and Wait</a>
#### Usage
M104 [ B | R | S ]
M109 [ B | R | S ]
#### Parameters (not mandatory)
@ -6451,7 +6478,7 @@ Sigma_Exit:
#endif
/*!
### M92 Set Axis steps-per-unit <a href="https://reprap.org/wiki/G-code#M92:_Set_axis_steps_per_unit">M92: Set axis_steps_per_unit</a>
### M92 - Set Axis steps-per-unit <a href="https://reprap.org/wiki/G-code#M92:_Set_axis_steps_per_unit">M92: Set axis_steps_per_unit</a>
Allows programming of steps per unit (usually mm) for motor drives. These values are reset to firmware defaults on power on, unless saved to EEPROM if available (M500 in Marlin)
#### Usage
@ -6525,7 +6552,7 @@ Sigma_Exit:
break;
/*!
### M115 - Firmware info <a href="https://reprap.org/wiki/G-code#M115:_Get_Firmware_Version_and_Capabilities">M115: Get Firmware Version and Capabilities</a>
### M115 - Get Firmware Version and Capabilities <a href="https://reprap.org/wiki/G-code#M115:_Get_Firmware_Version_and_Capabilities">M115: Get Firmware Version and Capabilities</a>
Print the firmware info and capabilities
Without any arguments, prints Prusa firmware version number, machine type, extruder count and UUID.
`M115 U` Checks the firmware version provided. If the firmware version provided by the U code is higher than the currently running firmware, it will pause the print for 30s and ask the user to upgrade the firmware.
@ -7103,7 +7130,7 @@ Sigma_Exit:
- `F` - An int representing the number of segments per second, unless this results in segment lengths
greater than or less than the minimum and maximum segment length. Set to 0 to disable.
*/
case 214: //!@n M214 - Set Arc Parameters (Use M500 to store in eeprom) P<MM_PER_ARC_SEGMENT> S<MIN_MM_PER_ARC_SEGMENT> R<MIN_ARC_SEGMENTS> F<ARC_SEGMENTS_PER_SEC>
case 214:
{
// Extract all possible parameters if they appear
float p = code_seen('P') ? code_value() : cs.mm_per_arc_segment;
@ -7127,7 +7154,7 @@ Sigma_Exit:
}break;
/*!
### M220 Set feedrate percentage <a href="https://reprap.org/wiki/G-code#M220:_Set_speed_factor_override_percentage">M220: Set speed factor override percentage</a>
### M220 - Set feedrate percentage <a href="https://reprap.org/wiki/G-code#M220:_Set_speed_factor_override_percentage">M220: Set speed factor override percentage</a>
#### Usage
M220 [ B | S | R ]
@ -7137,7 +7164,7 @@ Sigma_Exit:
- `S` - Speed factor override percentage (0..100 or higher)
- `R` - Restore previous speed factor
*/
case 220: // M220 S<factor in percent>- set speed factor override percentage
case 220:
{
bool codesWereSeen = false;
if (code_seen('B')) //backup current speed factor
@ -7171,7 +7198,7 @@ Sigma_Exit:
#### Parameters
- `S` - Extrude factor override percentage (0..100 or higher), default 100%
*/
case 221: // M221 S<factor in percent>- set extrude factor override percentage
case 221:
{
if (code_seen('S'))
{
@ -7196,7 +7223,7 @@ Sigma_Exit:
- `P` - pin number
- `S` - pin state
*/
case 226: // M226 P<pin number> S<pin state>- Wait until the specified pin reaches the state required
case 226:
{
if(code_seen('P')){
int pin_number = code_value_short(); // pin number
@ -7559,6 +7586,10 @@ Sigma_Exit:
### M400 - Wait for all moves to finish <a href="https://reprap.org/wiki/G-code#M400:_Wait_for_current_moves_to_finish">M400: Wait for current moves to finish</a>
Finishes all current moves and and thus clears the buffer.
Equivalent to `G4` with no parameters.
#### Usage
M400
*/
case 400:
{
@ -7627,6 +7658,10 @@ Sigma_Exit:
/*!
### M420 - Mesh bed leveling status <a href="https://reprap.org/wiki/G-code#M420:_Mesh_bed_leveling_status">M420: Mesh bed leveling status</a>
Prints mesh bed leveling status and bed profile if activated.
#### Usage
M420
*/
case 420: // M420 Mesh bed leveling status
{
@ -7637,6 +7672,10 @@ Sigma_Exit:
/*!
### M500 - Store settings in EEPROM <a href="https://reprap.org/wiki/G-code#M500:_Store_parameters_in_non-volatile_storage">M500: Store parameters in non-volatile storage</a>
Save current parameters to EEPROM.
#### Usage
M500
*/
case 500:
{
@ -7647,6 +7686,10 @@ Sigma_Exit:
/*!
### M501 - Read settings from EEPROM <a href="https://reprap.org/wiki/G-code#M501:_Read_parameters_from_EEPROM">M501: Read parameters from EEPROM</a>
Set the active parameters to those stored in the EEPROM. This is useful to revert parameters after experimenting with them.
#### Usage
M501
*/
case 501:
{
@ -7657,6 +7700,10 @@ Sigma_Exit:
/*!
### M502 - Revert all settings to factory default <a href="https://reprap.org/wiki/G-code#M502:_Restore_Default_Settings">M502: Restore Default Settings</a>
This command resets all tunable parameters to their default values, as set in the firmware's configuration files. This doesn't reset any parameters stored in the EEPROM, so it must be followed by M500 to write the default settings.
#### Usage
M502
*/
case 502:
{
@ -7667,6 +7714,10 @@ Sigma_Exit:
/*!
### M503 - Repport all settings currently in memory <a href="https://reprap.org/wiki/G-code#M503:_Report_Current_Settings">M503: Report Current Settings</a>
This command asks the firmware to reply with the current print settings as set in memory. Settings will differ from EEPROM contents if changed since the last load / save. The reply output includes the G-Code commands to produce each setting. For example, Steps-Per-Unit values are displayed as an M92 command.
#### Usage
M503
*/
case 503:
{
@ -7678,6 +7729,10 @@ Sigma_Exit:
### M509 - Force language selection <a href="https://reprap.org/wiki/G-code#M509:_Force_language_selection">M509: Force language selection</a>
Resets the language to English.
Only on Original Prusa i3 MK2.5/s and MK3/s with multiple languages.
#### Usage
M509
*/
case 509:
{
@ -8379,7 +8434,6 @@ Sigma_Exit:
/*!
### M910 - TMC2130 init <a href="https://reprap.org/wiki/G-code#M910:_TMC2130_init">M910: TMC2130 init</a>
Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
*/
case 910:
{
@ -8825,7 +8879,6 @@ Sigma_Exit:
M707 A0x1b - Read a 8bit integer from register 0x1b and prints the result onto the serial line.
Does nothing if the A parameter is not present or if MMU is not enabled.
*/
case 707: {
if ( MMU2::mmu2.Enabled() ) {
@ -9021,7 +9074,6 @@ Sigma_Exit:
- The hex address needs to be lowercase without the 0 before the x
- Count is decimal
- The hex data needs to be lowercase
*/
case 2:
dcode_2(); break;
@ -9044,7 +9096,6 @@ Sigma_Exit:
- The hex address needs to be lowercase without the 0 before the x
- Count is decimal
- The hex data needs to be lowercase
*/
case 3:
dcode_3(); break;
@ -9052,7 +9103,6 @@ Sigma_Exit:
#ifdef DEBUG_DCODES
/*!
### D4 - Read/Write PIN <a href="https://reprap.org/wiki/G-code#D4:_Read.2FWrite_PIN">D4: Read/Write PIN</a>
To read the digital value of a pin you need only to define the pin number.
#### Usage
@ -9086,7 +9136,6 @@ Sigma_Exit:
- The hex address needs to be lowercase without the 0 before the x
- Count is decimal
- The hex data needs to be lowercase
*/
case 5:
dcode_5(); break;

View File

@ -55,7 +55,6 @@ public:
void getDirName(char* name, uint8_t level);
uint8_t getWorkDirDepth();
void ls(ls_param params);
bool chdir(const char * relpath, bool doPresort);
void updir();
@ -90,7 +89,7 @@ public:
public:
bool saving;
bool logging;
bool sdprinting ;
bool sdprinting;
bool mounted;
char filename[FILENAME_LENGTH];
// There are scenarios when simple modification time is not enough (on MS Windows)