Browse Source

🐛 Fix AIR_ASSIST (#24162)

Dominic 2 years ago
parent
commit
0e4348c718
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/feature/spindle_laser.cpp

+ 2
- 2
Marlin/src/feature/spindle_laser.cpp View File

@@ -159,8 +159,8 @@ void SpindleLaser::apply_power(const uint8_t opwr) {
159 159
 
160 160
 #if ENABLED(AIR_ASSIST)
161 161
   // Enable / disable air assist
162
-  void SpindleLaser::air_assist_enable()  { WRITE(AIR_ASSIST_PIN,  AIR_ASSIST_PIN); } // Turn ON
163
-  void SpindleLaser::air_assist_disable() { WRITE(AIR_ASSIST_PIN, !AIR_ASSIST_PIN); } // Turn OFF
162
+  void SpindleLaser::air_assist_enable()  { WRITE(AIR_ASSIST_PIN,  AIR_ASSIST_ACTIVE); } // Turn ON
163
+  void SpindleLaser::air_assist_disable() { WRITE(AIR_ASSIST_PIN, !AIR_ASSIST_ACTIVE); } // Turn OFF
164 164
   void SpindleLaser::air_assist_toggle()  { TOGGLE(AIR_ASSIST_PIN); } // Toggle state
165 165
 #endif
166 166
 

Loading…
Cancel
Save