mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Merge "Allow dataRecieved to be null in I2C transaction (fixes artf3603)"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user