mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-02-15 08:59:45 -07:00
🧑💻 Simplify some flag params
This commit is contained in:
parent
0f76f17f16
commit
b60838508b
2 changed files with 2 additions and 2 deletions
|
|
@ -320,7 +320,7 @@
|
|||
*/
|
||||
void GcodeSuite::M871() {
|
||||
|
||||
if (parser.seen('R')) {
|
||||
if (parser.seen_test('R')) {
|
||||
// Reset z-probe offsets to factory defaults
|
||||
ptc.clear_all_offsets();
|
||||
SERIAL_ECHOLNPGM("Offsets reset to default.");
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ void GcodeSuite::M486() {
|
|||
if (parser.seenval('S'))
|
||||
cancelable.set_active_object(parser.value_int());
|
||||
|
||||
if (parser.seen('C')) cancelable.cancel_active_object();
|
||||
if (parser.seen_test('C')) cancelable.cancel_active_object();
|
||||
|
||||
if (parser.seenval('P')) cancelable.cancel_object(parser.value_int());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue