Преглед на файлове

CUSTOM_USER_BUTTONS followup (#21284)

Followup to #18389
ellensp преди 3 години
родител
ревизия
aad0f517b4
No account linked to committer's email address
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3
    3
      Marlin/Configuration_adv.h

+ 3
- 3
Marlin/Configuration_adv.h Целия файл

@@ -3420,7 +3420,7 @@
3420 3420
 //#define CUSTOM_USER_BUTTONS
3421 3421
 #if ENABLED(CUSTOM_USER_BUTTONS)
3422 3422
   //#define BUTTON1_PIN -1
3423
-  #if PIN_EXISTS(BUTTON1_PIN)
3423
+  #if PIN_EXISTS(BUTTON1)
3424 3424
     #define BUTTON1_HIT_STATE     LOW       // State of the triggered button. NC=LOW. NO=HIGH.
3425 3425
     #define BUTTON1_WHEN_PRINTING false     // Button allowed to trigger during printing?
3426 3426
     #define BUTTON1_GCODE         "G28"
@@ -3428,7 +3428,7 @@
3428 3428
   #endif
3429 3429
 
3430 3430
   //#define BUTTON2_PIN -1
3431
-  #if PIN_EXISTS(BUTTON2_PIN)
3431
+  #if PIN_EXISTS(BUTTON2)
3432 3432
     #define BUTTON2_HIT_STATE     LOW
3433 3433
     #define BUTTON2_WHEN_PRINTING false
3434 3434
     #define BUTTON2_GCODE         "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND)
@@ -3436,7 +3436,7 @@
3436 3436
   #endif
3437 3437
 
3438 3438
   //#define BUTTON3_PIN -1
3439
-  #if PIN_EXISTS(BUTTON3_PIN)
3439
+  #if PIN_EXISTS(BUTTON3)
3440 3440
     #define BUTTON3_HIT_STATE     LOW
3441 3441
     #define BUTTON3_WHEN_PRINTING false
3442 3442
     #define BUTTON3_GCODE         "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)

Loading…
Отказ
Запис