mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Don't send DS errors if no DS.
Change-Id: I765d8c21371e772ec09bf696f6dd2fff43f8ed24
This commit is contained in:
committed by
James Kuszmaul
parent
d2edb80da2
commit
0e46592ad1
@@ -530,5 +530,11 @@ double DriverStation::GetMatchTime()
|
||||
void DriverStation::ReportError(std::string error)
|
||||
{
|
||||
std::cout << error << std::endl;
|
||||
HALSetErrorData(error.c_str(), error.size(), 0);
|
||||
|
||||
HALControlWord controlWord;
|
||||
HALGetControlWord(&controlWord);
|
||||
if(controlWord.dsAttached)
|
||||
{
|
||||
HALSetErrorData(error.c_str(), error.size(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user