|
@ -132,7 +132,7 @@ |
|
|
constexpr int16_t sns_angles[2] = SWITCHING_NOZZLE_SERVO_ANGLES; |
|
|
constexpr int16_t sns_angles[2] = SWITCHING_NOZZLE_SERVO_ANGLES; |
|
|
planner.synchronize(); |
|
|
planner.synchronize(); |
|
|
servo[sns_index[e]].move(sns_angles[angle_index]); |
|
|
servo[sns_index[e]].move(sns_angles[angle_index]); |
|
|
safe_delay(500); |
|
|
safe_delay(SWITCHING_NOZZLE_SERVO_DWELL); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void lower_nozzle(const uint8_t e) { _move_nozzle_servo(e, 0); } |
|
|
void lower_nozzle(const uint8_t e) { _move_nozzle_servo(e, 0); } |
|
@ -143,7 +143,7 @@ |
|
|
void move_nozzle_servo(const uint8_t angle_index) { |
|
|
void move_nozzle_servo(const uint8_t angle_index) { |
|
|
planner.synchronize(); |
|
|
planner.synchronize(); |
|
|
servo[SWITCHING_NOZZLE_SERVO_NR].move(servo_angles[SWITCHING_NOZZLE_SERVO_NR][angle_index]); |
|
|
servo[SWITCHING_NOZZLE_SERVO_NR].move(servo_angles[SWITCHING_NOZZLE_SERVO_NR][angle_index]); |
|
|
safe_delay(500); |
|
|
safe_delay(SWITCHING_NOZZLE_SERVO_DWELL); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|