Skip to content

Commit 91f9e16

Browse files
✨ Configurable Switching Nozzle dwell (#24304)
1 parent 232a104 commit 91f9e16

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Marlin/Configuration.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@
270270
#define SWITCHING_NOZZLE_SERVO_NR 0
271271
//#define SWITCHING_NOZZLE_E1_SERVO_NR 1 // If two servos are used, the index of the second
272272
#define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 } // Angles for E0, E1 (single servo) or lowered/raised (dual servo)
273+
#define SWITCHING_NOZZLE_SERVO_DWELL 2500 // Dwell time to wait for servo to make physical move
273274
#endif
274275

275276
/**

Marlin/src/module/tool_change.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
constexpr int16_t sns_angles[2] = SWITCHING_NOZZLE_SERVO_ANGLES;
133133
planner.synchronize();
134134
servo[sns_index[e]].move(sns_angles[angle_index]);
135-
safe_delay(500);
135+
safe_delay(SWITCHING_NOZZLE_SERVO_DWELL);
136136
}
137137

138138
void lower_nozzle(const uint8_t e) { _move_nozzle_servo(e, 0); }
@@ -143,7 +143,7 @@
143143
void move_nozzle_servo(const uint8_t angle_index) {
144144
planner.synchronize();
145145
servo[SWITCHING_NOZZLE_SERVO_NR].move(servo_angles[SWITCHING_NOZZLE_SERVO_NR][angle_index]);
146-
safe_delay(500);
146+
safe_delay(SWITCHING_NOZZLE_SERVO_DWELL);
147147
}
148148

149149
#endif

0 commit comments

Comments
 (0)