From 867b7c676ace4b4abf9f597964672801ab2026c4 Mon Sep 17 00:00:00 2001 From: dberenguer Date: Thu, 17 Sep 2015 10:20:55 +0200 Subject: [PATCH] I2C pins remain high during sleep mode --- cores/panstamp/cc430core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/panstamp/cc430core.cpp b/cores/panstamp/cc430core.cpp index 273737f..6b9c74c 100644 --- a/cores/panstamp/cc430core.cpp +++ b/cores/panstamp/cc430core.cpp @@ -74,6 +74,8 @@ void CC430CORE::setLowPowerMode(bool lpm4) P1OUT |= 0x90; #elif __NRG_VERSION_1_0__ P1OUT |= 0x30; + #else // __NRG_VERSION_2 + P1OUT |= 0x18; #endif // Configure ports working as alternative functions as outputs