Optimize G-code flag parameters (#21849)
This commit is contained in:
committed by
Scott Lahteine
parent
770edea577
commit
6a1e78e614
@ -33,7 +33,7 @@
|
||||
* OR, with 'C' get the current filename.
|
||||
*/
|
||||
void GcodeSuite::M27() {
|
||||
if (parser.seen('C')) {
|
||||
if (parser.seen_test('C')) {
|
||||
SERIAL_ECHOPGM("Current file: ");
|
||||
card.printSelectedFilename();
|
||||
return;
|
||||
|
@ -44,7 +44,7 @@ void GcodeSuite::M808() {
|
||||
// Allowed to go into the queue for logging purposes.
|
||||
|
||||
// M808 K sent from the host to cancel all loops
|
||||
if (parser.seen('K')) repeat.cancel();
|
||||
if (parser.seen_test('K')) repeat.cancel();
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user