]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/atm128/i2c/Atm128I2CMasterPacketP.nc
add a #ifdef (ATM128_I2C_EXTERNAL_PULLDOWN) to control the external pulldown presence
[tinyos-2.x.git] / tos / chips / atm128 / i2c / Atm128I2CMasterPacketP.nc
index 35cf22939227927221baf71973c124df5cb058eb..b00c4fe27899d8b66359a99608ed0f4ee6fb31c6 100644 (file)
@@ -93,7 +93,7 @@ implementation {
   async command error_t AsyncStdControl.start() {
     atomic {
       if (state == I2C_OFF) {
-       call I2C.init(FALSE);
+       call I2C.init(ATM128_I2C_EXTERNAL_PULLDOWN);
        call I2C.readCurrent();
        call I2C.enable(TRUE);
        call I2C.enableInterrupt(FALSE);