|
@@ -453,7 +453,8 @@ inline void manage_inactivity(const bool ignore_stepper_queue=false) {
|
453
|
453
|
already_shutdown_steppers = false;
|
454
|
454
|
}
|
455
|
455
|
|
456
|
|
- #if PIN_EXISTS(CHDK) // Check if pin should be set to LOW (after M240 set it HIGH)
|
|
456
|
+ #if ENABLED(PHOTO_GCODE) && PIN_EXISTS(CHDK)
|
|
457
|
+ // Check if CHDK should be set to LOW (after M240 set it HIGH)
|
457
|
458
|
extern millis_t chdk_timeout;
|
458
|
459
|
if (chdk_timeout && ELAPSED(ms, chdk_timeout)) {
|
459
|
460
|
chdk_timeout = 0;
|