Set POV values on error to return -1 rather than 0 AND bump the version number (artf4005)

Change-Id: I6fffb693a8e58427086b9f9a673cd70bebdbca33
This commit is contained in:
Brad Miller
2015-02-20 18:35:38 -05:00
parent 605bb45e0c
commit 6159fde98e
4 changed files with 5 additions and 5 deletions

View File

@@ -270,7 +270,7 @@ int DriverStation::GetStickPOV(uint32_t stick, uint32_t pov) {
if (stick >= kJoystickPorts)
{
wpi_setWPIError(BadJoystickIndex);
return 0;
return -1;
}
if (pov >= m_joystickPOVs[stick].count)
@@ -279,7 +279,7 @@ int DriverStation::GetStickPOV(uint32_t stick, uint32_t pov) {
wpi_setWPIError(BadJoystickAxis);
else
ReportJoystickUnpluggedError("WARNING: Joystick POV missing, check if all controllers are plugged in\n");
return 0;
return -1;
}
return m_joystickPOVs[stick].povs[pov];