Browse Source

Fix Photograph Pin Sanity Check (#15406)

pull/1/head
InsanityAutomation 5 years ago
committed by Scott Lahteine
parent
commit
e942b352c6
  1. 2
      Marlin/src/inc/SanityCheck.h

2
Marlin/src/inc/SanityCheck.h

@ -2367,7 +2367,7 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
* Photo G-code requirements
*/
#if ENABLED(PHOTO_GCODE)
#if (PIN_EXISTS(CHDK) + PIN_EXISTS(PHOTOGRAPH_PIN) + defined(PHOTO_SWITCH_POSITION)) > 1
#if (PIN_EXISTS(CHDK) + PIN_EXISTS(PHOTOGRAPH) + 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."

Loading…
Cancel
Save