[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

@@ -113,8 +113,8 @@ void Watchdog::Impl::Main() {
if (now - watchdog->m_lastTimeoutPrintTime > kMinPrintPeriod) {
watchdog->m_lastTimeoutPrintTime = now;
if (!watchdog->m_suppressTimeoutMessage) {
FRC_ReportError(warn::Warning, "Watchdog not fed within {:.6f}s",
watchdog->m_timeout.value());
FRC_ReportWarning("Watchdog not fed within {:.6f}s",
watchdog->m_timeout.value());
}
}