From 8ceb26203fc99ff1b4710a5305a482fae467b821 Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Mon, 19 Mar 2018 20:41:38 +0100 Subject: [PATCH] disable pull up/down - PIR signal too weak --- msp430/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msp430/main.c b/msp430/main.c index fa802dd..53ee457 100644 --- a/msp430/main.c +++ b/msp430/main.c @@ -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 -- 2.39.2