Add PHOTO_GCODE option, photo trigger physical move (#13168)

This commit is contained in:
Scott Lahteine
2019-02-14 15:09:35 -06:00
committed by GitHub
parent be9a409980
commit d2bdb71c13
168 changed files with 1752 additions and 736 deletions

View File

@ -2073,6 +2073,23 @@ static_assert(sanity_arr_3[0] > 0 && sanity_arr_3[1] > 0 && sanity_arr_3[2] > 0
#error "GRADIENT_MIX requires 2 or more MIXING_VIRTUAL_TOOLS."
#endif
/**
* Photo G-code requirements
*/
#if ENABLED(PHOTO_GCODE)
#if (PIN_EXISTS(CHDK) + PIN_EXISTS(PHOTOGRAPH_PIN) + defined(PHOTO_SWITCH_POSITION)) > 1
#error "Please define only one of CHDK_PIN, PHOTOGRAPH_PIN, or PHOTO_SWITCH_POSITION."
#elif defined(PHOTO_SWITCH_POSITION) && !defined(PHOTO_POSITION)
#error "PHOTO_SWITCH_POSITION requires PHOTO_POSITION. Please update your Configuration_adv.h."
#elif PIN_EXISTS(CHDK) && defined(CHDK_DELAY)
#error "CHDK_DELAY has been replaced by PHOTO_SWITCH_MS. Please update your Configuration_adv.h."
#elif PIN_EXISTS(CHDK) && !defined(PHOTO_SWITCH_MS)
#error "PHOTO_SWITCH_MS is required with CHDK_PIN. Please update your Configuration_adv.h."
#elif defined(PHOTO_RETRACT_MM)
static_assert(PHOTO_RETRACT_MM + 0 >= 0, "PHOTO_RETRACT_MM must be >= 0.");
#endif
#endif
/**
* Prusa MMU2 requirements
*/