Skip to content

Commit aad0f51

Browse files
authored
CUSTOM_USER_BUTTONS followup (#21284)
Followup to #18389
1 parent 1b9ff68 commit aad0f51

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Marlin/Configuration_adv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3420,23 +3420,23 @@
34203420
//#define CUSTOM_USER_BUTTONS
34213421
#if ENABLED(CUSTOM_USER_BUTTONS)
34223422
//#define BUTTON1_PIN -1
3423-
#if PIN_EXISTS(BUTTON1_PIN)
3423+
#if PIN_EXISTS(BUTTON1)
34243424
#define BUTTON1_HIT_STATE LOW // State of the triggered button. NC=LOW. NO=HIGH.
34253425
#define BUTTON1_WHEN_PRINTING false // Button allowed to trigger during printing?
34263426
#define BUTTON1_GCODE "G28"
34273427
#define BUTTON1_DESC "Homing" // Optional string to set the LCD status
34283428
#endif
34293429

34303430
//#define BUTTON2_PIN -1
3431-
#if PIN_EXISTS(BUTTON2_PIN)
3431+
#if PIN_EXISTS(BUTTON2)
34323432
#define BUTTON2_HIT_STATE LOW
34333433
#define BUTTON2_WHEN_PRINTING false
34343434
#define BUTTON2_GCODE "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND)
34353435
#define BUTTON2_DESC "Preheat for " PREHEAT_1_LABEL
34363436
#endif
34373437

34383438
//#define BUTTON3_PIN -1
3439-
#if PIN_EXISTS(BUTTON3_PIN)
3439+
#if PIN_EXISTS(BUTTON3)
34403440
#define BUTTON3_HIT_STATE LOW
34413441
#define BUTTON3_WHEN_PRINTING false
34423442
#define BUTTON3_GCODE "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)

0 commit comments

Comments
 (0)