mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Allow dataRecieved to be null in I2C transaction (fixes artf3603)
Change-Id: I02fb5ba8c5e0677b710a8bd63e98a4851c52883e
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