compile bug
This commit is contained in:
+12
-11
@@ -78,6 +78,18 @@ unsigned long lastMotorActive = 0;
|
||||
const unsigned long IDLE_TIMEOUT_MS = 30 * 60 * 1000; // 30 minutes
|
||||
bool motorsDisabled = true; // Assume disabled at startup until moved
|
||||
|
||||
// ─── Homing State Machine ─────────────────────────────────────────
|
||||
enum HomingState {
|
||||
HOME_IDLE,
|
||||
HOME_ALL_PHASE1,
|
||||
HOME_ALL_PHASE2,
|
||||
HOME_1_PHASE1,
|
||||
HOME_1_PHASE2,
|
||||
HOME_2_PHASE1,
|
||||
HOME_2_PHASE2
|
||||
};
|
||||
HomingState homingState = HOME_IDLE;
|
||||
|
||||
// ─── Forward declarations ─────────────────────────────────────────
|
||||
void parseCommand(const String &cmd);
|
||||
void sendPosition();
|
||||
@@ -280,17 +292,6 @@ void setup() {
|
||||
}
|
||||
|
||||
// ─── Loop ─────────────────────────────────────────────────────────
|
||||
// ─── Homing State Machine ─────────────────────────────────────────
|
||||
enum HomingState {
|
||||
HOME_IDLE,
|
||||
HOME_ALL_PHASE1,
|
||||
HOME_ALL_PHASE2,
|
||||
HOME_1_PHASE1,
|
||||
HOME_1_PHASE2,
|
||||
HOME_2_PHASE1,
|
||||
HOME_2_PHASE2
|
||||
};
|
||||
HomingState homingState = HOME_IDLE;
|
||||
|
||||
void loop() {
|
||||
stepper1.run();
|
||||
|
||||
Reference in New Issue
Block a user