瀏覽代碼

Fix Photograph Pin Sanity Check (#15406)

InsanityAutomation 5 年之前
父節點
當前提交
e942b352c6
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/src/inc/SanityCheck.h

+ 1
- 1
Marlin/src/inc/SanityCheck.h 查看文件

@@ -2367,7 +2367,7 @@ static_assert(   _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
2367 2367
  * Photo G-code requirements
2368 2368
  */
2369 2369
 #if ENABLED(PHOTO_GCODE)
2370
-  #if (PIN_EXISTS(CHDK) + PIN_EXISTS(PHOTOGRAPH_PIN) + defined(PHOTO_SWITCH_POSITION)) > 1
2370
+  #if (PIN_EXISTS(CHDK) + PIN_EXISTS(PHOTOGRAPH) + defined(PHOTO_SWITCH_POSITION)) > 1
2371 2371
     #error "Please define only one of CHDK_PIN, PHOTOGRAPH_PIN, or PHOTO_SWITCH_POSITION."
2372 2372
   #elif defined(PHOTO_SWITCH_POSITION) && !defined(PHOTO_POSITION)
2373 2373
     #error "PHOTO_SWITCH_POSITION requires PHOTO_POSITION. Please update your Configuration_adv.h."

Loading…
取消
儲存