Skip to content

Commit d5899a2

Browse files
thinkyheadMoellerDi
authored andcommitted
Update MarlinCore.cpp
1 parent bbd5f47 commit d5899a2

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

Marlin/src/MarlinCore.cpp

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,79 +1247,79 @@ void setup() {
12471247
#define INIT_CUSTOM_USER_BUTTON_PINS(N) (PIN_EXISTS(USER_GCODE_PIN_##N) && ENABLED(USER_GCODE_PIN_INIT_##N) && defined(USER_GCODE_PIN_STATE_##N))
12481248
#define INIT_CUSTOM_USER_BUTTON_PIN(N) do{ SET_INPUT(USER_GCODE_PIN_##N); WRITE(USER_GCODE_PIN_##N, !USER_GCODE_PIN_STATE_##N); }while(0)
12491249

1250-
#if INIT_CUSTOM_USER_BUTTON_PINS(1)
1250+
#if HAS_CUSTOM_USER_BUTTON(1)
12511251
INIT_CUSTOM_USER_BUTTON_PIN(1);
12521252
#endif
1253-
#if INIT_CUSTOM_USER_BUTTON_PINS(2)
1253+
#if HAS_CUSTOM_USER_BUTTON(2)
12541254
INIT_CUSTOM_USER_BUTTON_PIN(2);
12551255
#endif
1256-
#if INIT_CUSTOM_USER_BUTTON_PINS(3)
1256+
#if HAS_CUSTOM_USER_BUTTON(3)
12571257
INIT_CUSTOM_USER_BUTTON_PIN(3);
12581258
#endif
1259-
#if INIT_CUSTOM_USER_BUTTON_PINS(4)
1259+
#if HAS_CUSTOM_USER_BUTTON(4)
12601260
INIT_CUSTOM_USER_BUTTON_PIN(4);
12611261
#endif
1262-
#if INIT_CUSTOM_USER_BUTTON_PINS(5)
1262+
#if HAS_CUSTOM_USER_BUTTON(5)
12631263
INIT_CUSTOM_USER_BUTTON_PIN(5);
12641264
#endif
1265-
#if INIT_CUSTOM_USER_BUTTON_PINS(6)
1265+
#if HAS_CUSTOM_USER_BUTTON(6)
12661266
INIT_CUSTOM_USER_BUTTON_PIN(6);
12671267
#endif
1268-
#if INIT_CUSTOM_USER_BUTTON_PINS(7)
1268+
#if HAS_CUSTOM_USER_BUTTON(7)
12691269
INIT_CUSTOM_USER_BUTTON_PIN(7);
12701270
#endif
1271-
#if INIT_CUSTOM_USER_BUTTON_PINS(8)
1271+
#if HAS_CUSTOM_USER_BUTTON(8)
12721272
INIT_CUSTOM_USER_BUTTON_PIN(8);
12731273
#endif
1274-
#if INIT_CUSTOM_USER_BUTTON_PINS(9)
1274+
#if HAS_CUSTOM_USER_BUTTON(9)
12751275
INIT_CUSTOM_USER_BUTTON_PIN(9);
12761276
#endif
1277-
#if INIT_CUSTOM_USER_BUTTON_PINS(10)
1277+
#if HAS_CUSTOM_USER_BUTTON(10)
12781278
INIT_CUSTOM_USER_BUTTON_PIN(10);
12791279
#endif
1280-
#if INIT_CUSTOM_USER_BUTTON_PINS(11)
1280+
#if HAS_CUSTOM_USER_BUTTON(11)
12811281
INIT_CUSTOM_USER_BUTTON_PIN(11);
12821282
#endif
1283-
#if INIT_CUSTOM_USER_BUTTON_PINS(12)
1283+
#if HAS_CUSTOM_USER_BUTTON(12)
12841284
INIT_CUSTOM_USER_BUTTON_PIN(12);
12851285
#endif
1286-
#if INIT_CUSTOM_USER_BUTTON_PINS(13)
1286+
#if HAS_CUSTOM_USER_BUTTON(13)
12871287
INIT_CUSTOM_USER_BUTTON_PIN(13);
12881288
#endif
1289-
#if INIT_CUSTOM_USER_BUTTON_PINS(14)
1289+
#if HAS_CUSTOM_USER_BUTTON(14)
12901290
INIT_CUSTOM_USER_BUTTON_PIN(14);
12911291
#endif
1292-
#if INIT_CUSTOM_USER_BUTTON_PINS(15)
1292+
#if HAS_CUSTOM_USER_BUTTON(15)
12931293
INIT_CUSTOM_USER_BUTTON_PIN(15);
12941294
#endif
1295-
#if INIT_CUSTOM_USER_BUTTON_PINS(16)
1295+
#if HAS_CUSTOM_USER_BUTTON(16)
12961296
INIT_CUSTOM_USER_BUTTON_PIN(16);
12971297
#endif
1298-
#if INIT_CUSTOM_USER_BUTTON_PINS(17)
1298+
#if HAS_CUSTOM_USER_BUTTON(17)
12991299
INIT_CUSTOM_USER_BUTTON_PIN(17);
13001300
#endif
1301-
#if INIT_CUSTOM_USER_BUTTON_PINS(18)
1301+
#if HAS_CUSTOM_USER_BUTTON(18)
13021302
INIT_CUSTOM_USER_BUTTON_PIN(18);
13031303
#endif
1304-
#if INIT_CUSTOM_USER_BUTTON_PINS(19)
1304+
#if HAS_CUSTOM_USER_BUTTON(19)
13051305
INIT_CUSTOM_USER_BUTTON_PIN(19);
13061306
#endif
1307-
#if INIT_CUSTOM_USER_BUTTON_PINS(20)
1307+
#if HAS_CUSTOM_USER_BUTTON(20)
13081308
INIT_CUSTOM_USER_BUTTON_PIN(20);
13091309
#endif
1310-
#if INIT_CUSTOM_USER_BUTTON_PINS(21)
1310+
#if HAS_CUSTOM_USER_BUTTON(21)
13111311
INIT_CUSTOM_USER_BUTTON_PIN(21);
13121312
#endif
1313-
#if INIT_CUSTOM_USER_BUTTON_PINS(22)
1313+
#if HAS_CUSTOM_USER_BUTTON(22)
13141314
INIT_CUSTOM_USER_BUTTON_PIN(22);
13151315
#endif
1316-
#if INIT_CUSTOM_USER_BUTTON_PINS(23)
1316+
#if HAS_CUSTOM_USER_BUTTON(23)
13171317
INIT_CUSTOM_USER_BUTTON_PIN(23);
13181318
#endif
1319-
#if INIT_CUSTOM_USER_BUTTON_PINS(24)
1319+
#if HAS_CUSTOM_USER_BUTTON(24)
13201320
INIT_CUSTOM_USER_BUTTON_PIN(24);
13211321
#endif
1322-
#if INIT_CUSTOM_USER_BUTTON_PINS(25)
1322+
#if HAS_CUSTOM_USER_BUTTON(25)
13231323
INIT_CUSTOM_USER_BUTTON_PIN(25);
13241324
#endif
13251325
#endif

0 commit comments

Comments
 (0)