Skip to content

Commit d3698d4

Browse files
Alpaca233claude
andcommitted
style(filter-wheel): brace-style consistency in back_off_homing_w/w2
Match the Allman brace convention used by the surrounding homing functions in operations.cpp. No behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 18a7ec1 commit d3698d4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

firmware/controller/src/operations.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,13 @@ void back_off_homing_w()
100100
is_preparing_for_homing_W = true;
101101
tmc4361A_readInt(&tmc4361[w], TMC4361A_EVENTS);
102102
if (homing_direction_W == HOME_NEGATIVE) // approach the left switch
103+
{
103104
tmc4361A_setSpeed(&tmc4361[w], tmc4361A_vmmToMicrosteps(&tmc4361[w], LEFT_DIR * HOMING_VELOCITY_W));
105+
}
104106
else // approach the right switch
107+
{
105108
tmc4361A_setSpeed(&tmc4361[w], tmc4361A_vmmToMicrosteps(&tmc4361[w], RGHT_DIR * HOMING_VELOCITY_W));
109+
}
106110
}
107111
}
108112
}
@@ -117,9 +121,13 @@ void back_off_homing_w2()
117121
is_preparing_for_homing_W2 = true;
118122
tmc4361A_readInt(&tmc4361[w2], TMC4361A_EVENTS);
119123
if (homing_direction_W2 == HOME_NEGATIVE) // approach the left switch
124+
{
120125
tmc4361A_setSpeed(&tmc4361[w2], tmc4361A_vmmToMicrosteps(&tmc4361[w2], LEFT_DIR * HOMING_VELOCITY_W));
126+
}
121127
else // approach the right switch
128+
{
122129
tmc4361A_setSpeed(&tmc4361[w2], tmc4361A_vmmToMicrosteps(&tmc4361[w2], RGHT_DIR * HOMING_VELOCITY_W));
130+
}
123131
}
124132
}
125133
}

0 commit comments

Comments
 (0)