Optimize G-code flag parameters (#21849)

This commit is contained in:
Scott Lahteine authored and Scott Lahteine committed 2021-05-15 15:05:53 -05:00
1 parent 770edea577
commit 6a1e78e614
25 files changed
+95 -94

No files matched your search

+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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();
}