瀏覽代碼

Init probe test pin with FastIO

Scott Lahteine 8 年之前
父節點
當前提交
fc7d7f87b4
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. 2
    3
      Marlin/Marlin_main.cpp

+ 2
- 3
Marlin/Marlin_main.cpp 查看文件

@@ -6354,9 +6354,8 @@ inline void gcode_M42() {
6354 6354
       #endif
6355 6355
 
6356 6356
       SERIAL_PROTOCOLLNPGM(". deploy & stow 4 times");
6357
-      pinMode(PROBE_TEST_PIN, INPUT_PULLUP);
6358
-      bool deploy_state;
6359
-      bool stow_state;
6357
+      SET_INPUT_PULLUP(PROBE_TEST_PIN);
6358
+      bool deploy_state, stow_state;
6360 6359
       for (uint8_t i = 0; i < 4; i++) {
6361 6360
         servo[probe_index].move(z_servo_angle[0]); //deploy
6362 6361
         safe_delay(500);

Loading…
取消
儲存