Fix Photograph Pin Sanity Check (#15406)
This commit is contained in:
parent
41ea2d8c31
commit
e942b352c6
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Reference in a new issue