X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Ftda5250%2FHplTda5250ConfigP.nc;h=de8f61a15e06cd3f1afe99cf4367cb0ca8cf34c0;hb=337d0b13acf569c2640b3ed7b7f5c7cec35d7ddd;hp=cb6616434a857a142230936a84159640a1786584;hpb=1a329382c4f4556fd52d85f4e3f4a67e54911682;p=tinyos-2.x.git diff --git a/tos/chips/tda5250/HplTda5250ConfigP.nc b/tos/chips/tda5250/HplTda5250ConfigP.nc index cb661643..de8f61a1 100644 --- a/tos/chips/tda5250/HplTda5250ConfigP.nc +++ b/tos/chips/tda5250/HplTda5250ConfigP.nc @@ -488,14 +488,9 @@ implementation { /* << tested >> */ async command void HplTda5250Config.SetSleepMode() { - currentConfig = CONFIG_ALL_PD_POWER_DOWN(currentConfig); - if (currentConfig & MASK_CONFIG_CONTROL_TXRX_REGISTER) { - call CONFIG.set(currentConfig); - } - else { - call PWDDD.makeOutput(); - call PWDDD.set(); - } + currentConfig = CONFIG_ALL_PD_POWER_DOWN(currentConfig); + call PWDDD.makeOutput(); + call PWDDD.set(); } async command bool HplTda5250Config.IsTxRxPinControlled() {