mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 15:26:18 +00:00
Merge pull request #1919 from paclema/M48_mismatch
Fixed M48 mismatch between n and P parameter on documentation
This commit is contained in:
commit
f49a73d69f
@ -122,7 +122,7 @@
|
|||||||
* Call gcode file : "M32 P !filename#" and return to caller file after finishing (similar to #include).
|
* 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
|
* The '#' is necessary when calling from within sd files, as it stops buffer prereading
|
||||||
* 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.
|
* 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.
|
||||||
* M48 - Measure Z_Probe repeatability. M48 [n # of points] [X position] [Y position] [V_erboseness #] [E_ngage Probe] [L # of legs of travel]
|
* M48 - Measure Z_Probe repeatability. M48 [P # of points] [X position] [Y position] [V_erboseness #] [E_ngage Probe] [L # of legs of travel]
|
||||||
* M80 - Turn on Power Supply
|
* M80 - Turn on Power Supply
|
||||||
* M81 - Turn off Power Supply
|
* M81 - Turn off Power Supply
|
||||||
* M82 - Set E codes absolute (default)
|
* M82 - Set E codes absolute (default)
|
||||||
@ -2893,7 +2893,7 @@ inline void gcode_M42() {
|
|||||||
* M48: Z-Probe repeatability measurement function.
|
* M48: Z-Probe repeatability measurement function.
|
||||||
*
|
*
|
||||||
* Usage:
|
* Usage:
|
||||||
* M48 <n#> <X#> <Y#> <V#> <E> <L#>
|
* M48 <P#> <X#> <Y#> <V#> <E> <L#>
|
||||||
* P = Number of sampled points (4-50, default 10)
|
* P = Number of sampled points (4-50, default 10)
|
||||||
* X = Sample X position
|
* X = Sample X position
|
||||||
* Y = Sample Y position
|
* Y = Sample Y position
|
||||||
@ -2905,10 +2905,6 @@ inline void gcode_M42() {
|
|||||||
* as been issued prior to invoking the M48 Z-Probe repeatability measurement function.
|
* 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 need to be
|
* Any information generated by a prior G29 Bed leveling command will be lost and need to be
|
||||||
* regenerated.
|
* 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.
|
|
||||||
*/
|
*/
|
||||||
inline void gcode_M48() {
|
inline void gcode_M48() {
|
||||||
|
|
||||||
@ -2926,7 +2922,7 @@ inline void gcode_M42() {
|
|||||||
if (verbose_level > 0)
|
if (verbose_level > 0)
|
||||||
SERIAL_PROTOCOLPGM("M48 Z-Probe Repeatability test\n");
|
SERIAL_PROTOCOLPGM("M48 Z-Probe Repeatability test\n");
|
||||||
|
|
||||||
if (code_seen('P') || code_seen('p') || code_seen('n')) { // `n` for legacy support only - please use `P`!
|
if (code_seen('P') || code_seen('p')) {
|
||||||
n_samples = code_value_short();
|
n_samples = code_value_short();
|
||||||
if (n_samples < 4 || n_samples > 50) {
|
if (n_samples < 4 || n_samples > 50) {
|
||||||
SERIAL_PROTOCOLPGM("?Sample size not plausible (4-50).\n");
|
SERIAL_PROTOCOLPGM("?Sample size not plausible (4-50).\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user