Skip to content

Commit 3781dc8

Browse files
committed
followup
1 parent 3070e7e commit 3781dc8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Marlin/src/HAL/LPC1768/HAL.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -91,24 +91,25 @@ void MarlinHAL::init() {
9191
#endif
9292

9393
// Flash status LED 3 times to indicate Marlin has started booting
94-
LOOP_L_N(i, 6) {
94+
for (uint8_t i = 0; i < 6; ++i) {
9595
TOGGLE(LED_PIN);
9696
delay(100);
9797
}
9898
#endif
9999

100100
// Init Servo Pins
101+
#define INIT_SERVO(N) OUT_WRITE(SERVO##N##_PIN, LOW)
101102
#if HAS_SERVO_0
102-
OUT_WRITE(SERVO0_PIN, LOW);
103+
INIT_SERVO(0);
103104
#endif
104105
#if HAS_SERVO_1
105-
OUT_WRITE(SERVO1_PIN, LOW);
106+
INIT_SERVO(1);
106107
#endif
107108
#if HAS_SERVO_2
108-
OUT_WRITE(SERVO2_PIN, LOW);
109+
INIT_SERVO(2);
109110
#endif
110111
#if HAS_SERVO_3
111-
OUT_WRITE(SERVO3_PIN, LOW);
112+
INIT_SERVO(3);
112113
#endif
113114

114115
//debug_frmwrk_init();

0 commit comments

Comments
 (0)