Browse Source

add pin definition to some motherboards

Christian Bohn 9 years ago
parent
commit
f48599f172
4 changed files with 13 additions and 1 deletions
  1. 0
    1
      Marlin/Marlin_main.cpp
  2. 5
    0
      Marlin/pins_MEGATRONICS_3.h
  3. 4
    0
      Marlin/pins_RAMBO.h
  4. 4
    0
      Marlin/pins_RAMPS_13.h

+ 0
- 1
Marlin/Marlin_main.cpp View File

@@ -1543,7 +1543,6 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
1543 1543
       do_blocking_move_to(X_MAX_POS + SLED_DOCKING_OFFSET + offset - 1, current_position[Y_AXIS], current_position[Z_AXIS]);  // Dock sled a bit closer to ensure proper capturing                                                                                                                           
1544 1544
       digitalWrite(SLED_PIN, LOW); // turn off magnet
1545 1545
       do_blocking_move_to(oldXpos, current_position[Y_AXIS], current_position[Z_AXIS]); // return to position before docking
1546
-      do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] - Z_RAISE_AFTER_PROBING);
1547 1546
     } else {
1548 1547
       float oldXpos = current_position[X_AXIS]; // save x position
1549 1548
       float z_loc = current_position[Z_AXIS];

+ 5
- 0
Marlin/pins_MEGATRONICS_3.h View File

@@ -8,6 +8,11 @@
8 8
 
9 9
 #define LARGE_FLASH        true
10 10
 
11
+
12
+#ifdef Z_PROBE_SLED
13
+  #define SLED_PIN         -1
14
+#endif
15
+
11 16
 // Servo support
12 17
 #ifdef NUM_SERVOS
13 18
   #define SERVO0_PIN       46 //AUX3-6

+ 4
- 0
Marlin/pins_RAMBO.h View File

@@ -22,6 +22,10 @@
22 22
   #endif
23 23
 #endif
24 24
 
25
+#ifdef Z_PROBE_SLED
26
+  #define SLED_PIN         -1
27
+#endif
28
+
25 29
 #undef X_MS1_PIN
26 30
 #undef X_MS2_PIN
27 31
 #undef Y_MS1_PIN

+ 4
- 0
Marlin/pins_RAMPS_13.h View File

@@ -134,6 +134,10 @@
134 134
   #endif
135 135
 #endif
136 136
 
137
+#ifdef Z_PROBE_SLED
138
+  #define SLED_PIN         -1
139
+#endif
140
+
137 141
 #ifdef ULTRA_LCD
138 142
 
139 143
   #ifdef NEWPANEL

Loading…
Cancel
Save