[wpilibc] Add FRC_ReportWarning (#6681)

This commit is contained in:
Jade
2024-07-28 11:20:08 +08:00
committed by GitHub
parent aba82e6a6c
commit 5dcaa6d671
7 changed files with 24 additions and 15 deletions

View File

@@ -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);