🎨 Additional utility macros

This commit is contained in:
Scott Lahteine
2021-05-11 04:01:21 -05:00
committed by Scott Lahteine
parent 52a23b969b
commit 5afb5e03b0
4 changed files with 43 additions and 4 deletions

View File

@ -32,7 +32,8 @@
* M122: Debug TMC drivers
*/
void GcodeSuite::M122() {
xyze_bool_t print_axis = { false, false, false, false };
xyze_bool_t print_axis = ARRAY_N_1(XYZE, false);
bool print_all = true;
LOOP_XYZE(i) if (parser.seen(axis_codes[i])) { print_axis[i] = true; print_all = false; }