Browse Source

Fix CHDK warning

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
dc6c977766
  1. 3
      Marlin/src/MarlinCore.cpp

3
Marlin/src/MarlinCore.cpp

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

Loading…
Cancel
Save