Fix Watchdog print formatting (#1693)

This commit is contained in:
Tyler Veness
2019-05-19 12:24:40 -07:00
committed by Peter Johnson
parent f432f65bef
commit d42ef5df02

View File

@@ -10,6 +10,7 @@
#include <cstdio>
#include <hal/HAL.h>
#include <wpi/Format.h>
#include <wpi/SmallString.h>
#include <wpi/raw_ostream.h>
@@ -170,7 +171,7 @@ void IterativeRobotBase::PrintLoopOverrunMessage() {
wpi::SmallString<128> str;
wpi::raw_svector_ostream buf(str);
buf << "Loop time of " << m_period << "s overrun\n";
buf << "Loop time of " << wpi::format("%.6f", m_period) << "s overrun\n";
DriverStation::ReportWarning(str);
}