]> oss.titaniummirror.com Git - rgblamp.git/blobdiff - buttons.h
mplabx update files
[rgblamp.git] / buttons.h
index 3138ecc168bfac4f9f556057a24ec056d39f64c8..63791acb0bcdea9b534e9445fae7fde766f945eb 100644 (file)
--- a/buttons.h
+++ b/buttons.h
@@ -19,8 +19,7 @@
  * rocker switch positions.
  */
 #define buttons_init() do { \
-    IOCBN4 = 1; \
-    IOCBN5 = 1; \
+    nWPUEN = 0; /* enable weak pull-ups on PortB */ \
     TRISB |= IN_MASK; \
     ANSELB &= ~IN_MASK; \
 } while (0)