[wpilibc] DriverStation: Remove ReportError and ReportWarning

Change use cases to directly call FRC_ReportError.
This commit is contained in:
Peter Johnson
2021-05-24 23:36:26 -07:00
parent 831c10bdfc
commit a04d1b4f97
26 changed files with 169 additions and 146 deletions

View File

@@ -8,7 +8,7 @@
#include <wpi/SmallString.h>
#include <wpi/raw_ostream.h>
#include "frc/DriverStation.h"
#include "frc/Errors.h"
using namespace frc;
@@ -36,7 +36,7 @@ void Tracer::PrintEpochs() {
wpi::raw_svector_ostream os(buf);
PrintEpochs(os);
if (!buf.empty()) {
DriverStation::ReportWarning(buf);
FRC_ReportError(warn::Warning, "{}", buf.c_str());
}
}