X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftmirws%2Fchips%2Fsht11%2FHplSensirionSht11P.nc;h=47b7569e8b5aec0b798a012546baa3c7752f0509;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=45b30ec90d84f9c2335637f9cf8440f1b6d048e4;hpb=7d75b3c1c1dfcfc519fc9ac96d2ff018883fe445;p=tinyos-2.x.git diff --git a/tos/platforms/tmirws/chips/sht11/HplSensirionSht11P.nc b/tos/platforms/tmirws/chips/sht11/HplSensirionSht11P.nc index 45b30ec9..47b7569e 100644 --- a/tos/platforms/tmirws/chips/sht11/HplSensirionSht11P.nc +++ b/tos/platforms/tmirws/chips/sht11/HplSensirionSht11P.nc @@ -55,23 +55,16 @@ implementation { call Timer.startOneShot( 11 ); return SUCCESS; } - + event void Timer.fired() { signal SplitControl.startDone( SUCCESS ); } command error_t SplitControl.stop() { -#if 0 - call SCK.makeInput(); + call SCK.makeOutput(); call SCK.clr(); call DATA.makeInput(); - call DATA.clr(); -#else - call DATA.makeOutput(); - call SCK.clr(); /* remains an output so no floating pin */ - call DATA.makeOutput(); - call DATA.set(); /* set as pulled-up output so we see no interrupts */ -#endif + call DATA.set(); call PWR.clr(); post stopTask(); return SUCCESS;