mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpilib] Add warning about onboard I2C (#3842)
This commit is contained in:
@@ -43,6 +43,12 @@ public class I2C implements AutoCloseable {
|
||||
m_port = port.value;
|
||||
m_deviceAddress = deviceAddress;
|
||||
|
||||
if (port == I2C.Port.kOnboard) {
|
||||
DriverStation.reportWarning(
|
||||
"Onboard I2C port is subject to system lockups. See Known Issues page for details",
|
||||
false);
|
||||
}
|
||||
|
||||
I2CJNI.i2CInitialize((byte) port.value);
|
||||
|
||||
HAL.report(tResourceType.kResourceType_I2C, deviceAddress);
|
||||
|
||||
Reference in New Issue
Block a user