Browse Source

Using SET_INPUT instead of pinMode

Ruwan J Egoda Gamage 9 years ago
parent
commit
1270fbfd38
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/ultralcd.cpp

+ 4
- 4
Marlin/ultralcd.cpp View File

1548
     #endif
1548
     #endif
1549
 
1549
 
1550
     #ifdef RIGIDBOT_PANEL
1550
     #ifdef RIGIDBOT_PANEL
1551
-      pinMode(BTN_UP,INPUT);
1552
-      pinMode(BTN_DWN,INPUT);
1553
-      pinMode(BTN_LFT,INPUT);
1554
-      pinMode(BTN_RT,INPUT);
1551
+      SET_INPUT(BTN_UP);
1552
+      SET_INPUT(BTN_DWN);
1553
+      SET_INPUT(BTN_LFT);
1554
+      SET_INPUT(BTN_RT);
1555
     #endif
1555
     #endif
1556
 
1556
 
1557
   #else  // Not NEWPANEL
1557
   #else  // Not NEWPANEL

Loading…
Cancel
Save