X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fchips%2Fatm1281%2FMcuSleepC.nc;h=65f1389c334dab50047b057bd72db380d4e1f444;hp=19b8738cb868ec21cae440ec2d205b1ae25fe762;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/chips/atm1281/McuSleepC.nc b/tos/chips/atm1281/McuSleepC.nc index 19b8738c..65f1389c 100644 --- a/tos/chips/atm1281/McuSleepC.nc +++ b/tos/chips/atm1281/McuSleepC.nc @@ -106,10 +106,10 @@ implementation { return ATM128_POWER_IDLE; } // UARTs are active - else if (UCSR0B & (1 << TXCIE0 | 1 << RXCIE0)) { // UART + else if (UCSR0B & (1 << TXCIE0 | 1 << RXCIE0 | 1 << UDRIE0)) { // UART return ATM128_POWER_IDLE; } - else if (UCSR1B & (1 << TXCIE1 | 1 << RXCIE1)) { // UART + else if (UCSR1B & (1 << TXCIE1 | 1 << RXCIE1 | 1 << UDRIE1)) { // UART return ATM128_POWER_IDLE; } // I2C (Two-wire) is active