disable pull up/down - PIR signal too weak
authorEugene Crosser <crosser@average.org>
Mon, 19 Mar 2018 19:41:38 +0000 (20:41 +0100)
committerEugene Crosser <crosser@average.org>
Mon, 19 Mar 2018 19:41:38 +0000 (20:41 +0100)
msp430/main.c

index fa802dd68292ffb5ef9abbbbe17f1a744b02305c..53ee457adf1da057d276a1f2bf221a9700be1a14 100644 (file)
@@ -58,7 +58,7 @@ int main(void)
 
        P2DIR &= ~(BIT4|BIT5);          // PIR Sensors
        P2OUT &= ~(BIT4|BIT5);          // Pull down
-       P2REN |= BIT4|BIT5;             // Enable pull-down
+       P2REN &= ~(BIT4|BIT5);          // Disable pull
        P2IES &= ~(BIT4|BIT5);          // INT on Lo->Hi edge
        P2IE  |= BIT4|BIT5;             // INT enable