1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-29 17:19:50 +02:00
This commit is contained in:
Mitch Bradley
2021-07-24 15:56:39 -10:00
parent 92ba726f7f
commit 17689abbc6

View File

@@ -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) {