From fc7d7f87b4dd67891b5c92a8b89507a87d4f9e4e Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Sun, 28 May 2017 18:59:34 -0500
Subject: [PATCH] Init probe test pin with FastIO
---
Marlin/Marlin_main.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp
index de039330c4..3acb1a0d09 100644
--- a/Marlin/Marlin_main.cpp
+++ b/Marlin/Marlin_main.cpp
@@ -6354,9 +6354,8 @@ inline void gcode_M42() {
#endif
SERIAL_PROTOCOLLNPGM(". deploy & stow 4 times");
- pinMode(PROBE_TEST_PIN, INPUT_PULLUP);
- bool deploy_state;
- bool stow_state;
+ SET_INPUT_PULLUP(PROBE_TEST_PIN);
+ bool deploy_state, stow_state;
for (uint8_t i = 0; i < 4; i++) {
servo[probe_index].move(z_servo_angle[0]); //deploy
safe_delay(500);
--
GitLab