Browse Source

Fix stuck CHDK pin as suggested in #6041

Scott Lahteine 8 years ago
parent
commit
23f1cfb46f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

10329
   }
10329
   }
10330
 
10330
 
10331
   #ifdef CHDK // Check if pin should be set to LOW after M240 set it to HIGH
10331
   #ifdef CHDK // Check if pin should be set to LOW after M240 set it to HIGH
10332
-    if (chdkActive && PENDING(ms, chdkHigh + CHDK_DELAY)) {
10332
+    if (chdkActive && ELAPSED(ms, chdkHigh + CHDK_DELAY)) {
10333
       chdkActive = false;
10333
       chdkActive = false;
10334
       WRITE(CHDK, LOW);
10334
       WRITE(CHDK, LOW);
10335
     }
10335
     }

Loading…
Cancel
Save