]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Don't leave the iopin attached to the sht1x SCK pin floating when the
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Tue, 16 Sep 2008 14:25:18 +0000 (14:25 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:01 +0000 (20:01 -0700)
controlling Resource is released.  Also, set the DATA pin in a manner
consistent with the fact that it is a pulled-up line by default, either
via an external resistor or one internal to the uC.

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;