]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmirws/chips/sht11/HplSensirionSht11P.nc
Don't leave the iopin attached to the sht1x SCK pin floating when the
[tinyos-2.x.git] / tos / platforms / tmirws / chips / sht11 / HplSensirionSht11P.nc
index 45b30ec90d84f9c2335637f9cf8440f1b6d048e4..777891f3bb6d673c5b99a1b49edeb6ba0ef9acd9 100644 (file)
@@ -61,17 +61,10 @@ implementation {
   }
 
   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;