mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilibc] Add FRC_ReportWarning (#6681)
This commit is contained in:
@@ -19,10 +19,10 @@ I2C::I2C(Port port, int deviceAddress)
|
||||
int32_t status = 0;
|
||||
|
||||
if (port == I2C::Port::kOnboard) {
|
||||
FRC_ReportError(warn::Warning,
|
||||
"Onboard I2C port is subject to system lockups. See Known "
|
||||
"Issues page for "
|
||||
"details");
|
||||
FRC_ReportWarning(
|
||||
"Onboard I2C port is subject to system lockups. See Known "
|
||||
"Issues page for "
|
||||
"details");
|
||||
}
|
||||
|
||||
HAL_InitializeI2C(m_port, &status);
|
||||
|
||||
Reference in New Issue
Block a user