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
@@ -48,7 +48,7 @@ void GcodeSuite::M122() {
tmc_set_report_interval(interval);
#endif
if (parser.seen('V'))
if (parser.seen_test('V'))
tmc_get_registers(print_axis.x, print_axis.y, print_axis.z, print_axis.e);
else
tmc_report_all(print_axis.x, print_axis.y, print_axis.z, print_axis.e);