Browse Source

Parking Extruder solenoid fix/cleanup

Scott Lahteine 3 years ago
parent
commit
431f6bf3a5
1 changed files with 2 additions and 7 deletions
  1. 2
    7
      Marlin/src/module/tool_change.h

+ 2
- 7
Marlin/src/module/tool_change.h View File

21
  */
21
  */
22
 #pragma once
22
 #pragma once
23
 
23
 
24
-#include "../inc/MarlinConfigPre.h"
25
-#include "../core/types.h"
24
+#include "../inc/MarlinConfig.h"
26
 
25
 
27
 //#define DEBUG_TOOLCHANGE_MIGRATION_FEATURE
26
 //#define DEBUG_TOOLCHANGE_MIGRATION_FEATURE
28
 
27
 
80
 
79
 
81
 #if ENABLED(PARKING_EXTRUDER)
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
   void pe_solenoid_set_pin_state(const uint8_t extruder_num, const uint8_t state);
84
   void pe_solenoid_set_pin_state(const uint8_t extruder_num, const uint8_t state);
90
 
85
 

Loading…
Cancel
Save