]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/atm128/adc/AdcP.nc
Make McuSleepC smarter about newer msp430 processors.
[tinyos-2.x.git] / tos / chips / atm128 / adc / AdcP.nc
index afb58823c2862a813c2735b17291775ae9fcf940..6b742dd55f8ea4589f8545a3e3936c32048bafbf 100644 (file)
@@ -43,7 +43,7 @@
  */
 #include "Timer.h"
 
-module AdcP {
+module AdcP @safe() {
   provides {
     interface Read<uint16_t>[uint8_t client];
     interface ReadNow<uint16_t>[uint8_t client];
@@ -80,7 +80,7 @@ implementation {
   }
 
   void sample() {
-    call Atm128AdcSingle.getData(channel(), refVoltage(), TRUE, prescaler());
+    call Atm128AdcSingle.getData(channel(), refVoltage(), FALSE, prescaler());
   }
 
   error_t startGet(uint8_t newState, uint8_t newClient) {