Przeglądaj źródła

Parking Extruder solenoid fix/cleanup

Scott Lahteine 3 lat temu
rodzic
commit
431f6bf3a5
1 zmienionych plików z 2 dodań i 7 usunięć
  1. 2
    7
      Marlin/src/module/tool_change.h

+ 2
- 7
Marlin/src/module/tool_change.h Wyświetl plik

@@ -21,8 +21,7 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#include "../inc/MarlinConfigPre.h"
25
-#include "../core/types.h"
24
+#include "../inc/MarlinConfig.h"
26 25
 
27 26
 //#define DEBUG_TOOLCHANGE_MIGRATION_FEATURE
28 27
 
@@ -80,11 +79,7 @@
80 79
 
81 80
 #if ENABLED(PARKING_EXTRUDER)
82 81
 
83
-  #if ENABLED(PARKING_EXTRUDER_SOLENOIDS_INVERT)
84
-    #define PE_MAGNET_ON_STATE !PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE
85
-  #else
86
-    #define PE_MAGNET_ON_STATE PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE
87
-  #endif
82
+  #define PE_MAGNET_ON_STATE TERN_(PARKING_EXTRUDER_SOLENOIDS_INVERT, !)PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE
88 83
 
89 84
   void pe_solenoid_set_pin_state(const uint8_t extruder_num, const uint8_t state);
90 85
 

Ładowanie…
Anuluj
Zapisz