From 17689abbc6bc3f79236a60b06cd24496ad51d756 Mon Sep 17 00:00:00 2001 From: Mitch Bradley Date: Sat, 24 Jul 2021 15:56:39 -1000 Subject: [PATCH] Oops --- Grbl_Esp32/src/Machine/Gang.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Grbl_Esp32/src/Machine/Gang.cpp b/Grbl_Esp32/src/Machine/Gang.cpp index 8d23f7f2..bd440d0e 100644 --- a/Grbl_Esp32/src/Machine/Gang.cpp +++ b/Grbl_Esp32/src/Machine/Gang.cpp @@ -20,6 +20,7 @@ #include "../Motors/Motor.h" #include "../Motors/NullMotor.h" +#include "Axes.h" #include "Endstops.h" namespace Machine { @@ -35,8 +36,8 @@ namespace Machine { } void Gang::init() { - if (strcmp(_motor->name, "null_motor") != 0) { - bitnum_istrue(Axes::motorMask, _axis + 16 * i); + if (strcmp(_motor->name(), "null_motor") != 0) { + bitnum_istrue(Machine::Axes::motorMask, _axis + 16 * _gang); } _motor->init(); if (_endstops) {