[wpilib] Remove I2C Warnings (#7677)

SystemCore won't have the I2C issues.
This commit is contained in:
Thad House
2025-01-14 11:31:47 -08:00
committed by GitHub
parent 45d7549ca9
commit fa71fb55a2
5 changed files with 1 additions and 32 deletions

View File

@@ -18,13 +18,7 @@ import edu.wpi.first.util.sendable.SendableRegistry;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
/**
* ADXL345 I2C Accelerometer.
*
* <p>The Onboard I2C port is subject to system lockups. See <a
* href="https://docs.wpilib.org/en/stable/docs/yearly-overview/known-issues.html#onboard-i2c-causing-system-lockups">
* WPILib Known Issues</a> page for details.
*/
/** ADXL345 I2C Accelerometer. */
@SuppressWarnings("TypeName")
public class ADXL345_I2C implements NTSendable, AutoCloseable {
/** Default I2C device address. */

View File

@@ -17,10 +17,6 @@ import java.nio.ByteBuffer;
*
* <p>This class is intended to be used by sensor (and other I2C device) drivers. It probably should
* not be used directly.
*
* <p>The Onboard I2C port is subject to system lockups. See <a
* href="https://docs.wpilib.org/en/stable/docs/yearly-overview/known-issues.html#onboard-i2c-causing-system-lockups">
* WPILib Known Issues</a> page for details.
*/
public class I2C implements AutoCloseable {
/** I2C connection ports. */
@@ -51,12 +47,6 @@ 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);