Merge "Allow dataRecieved to be null in I2C transaction (fixes artf3603)"

This commit is contained in:
Brad Miller (WPI)
2014-10-02 11:48:22 -07:00
committed by Gerrit Code Review

View File

@@ -107,7 +107,10 @@ public class I2C extends SensorBase {
}
}
HALUtil.checkStatus(status);*/
dataReceivedBuffer.get(dataReceived);
if(receiveSize > 0 && dataReceived != null)
{
dataReceivedBuffer.get(dataReceived);
}
return aborted;
}