Browse Source

CUSTOM_USER_BUTTONS followup (#21284)

Followup to #18389
ellensp 4 years ago
parent
commit
aad0f517b4
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/Configuration_adv.h

+ 3
- 3
Marlin/Configuration_adv.h View File

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

Loading…
Cancel
Save