};
mcu_power_t getPowerState() {
- mcu_power_t pState = MSP430_POWER_LPM3;
+ mcu_power_t pState = MSP430_POWER_LPM4;
// TimerA, USART0, USART1 check
if ((((TACCTL0 & CCIE) ||
(TACCTL1 & CCIE) ||
#endif
#ifdef __MSP430_HAS_I2C__
// registers end in "nr" to prevent nesC race condition detection
- || ((U0CTLnr & I2CEN) && (I2CTCTLnr & SSEL1) &&
+ || ((U0CTLnr & I2CEN) && (I2CTCTLnr & SSEL1) &&
(I2CDCTLnr & I2CBUSY) && (U0CTLnr & SYNC) && (U0CTLnr & I2C))
#endif
)
pState = MSP430_POWER_LPM1;
-#ifdef __MSP430_HAS_ADC12
+#ifdef __MSP430_HAS_ADC12__
// ADC12 check, pre-condition: pState != MSP430_POWER_ACTIVE
if (ADC12CTL0 & ADC12ON){
if (ADC12CTL1 & ADC12SSEL_2){