From 00486e2ec2bc5da6c9a34e64fed84d67f887a76b Mon Sep 17 00:00:00 2001 From: Brad Miller Date: Tue, 23 Sep 2014 17:35:09 -0400 Subject: [PATCH] Fix changes where the default value was always being returned for many of the robot state status functions. Change-Id: I50f11ce6d8ba4cbaa9ab7f44cd2f353e8bba72dd --- wpilibc/wpilibC++/src/RobotState.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wpilibc/wpilibC++/src/RobotState.cpp b/wpilibc/wpilibC++/src/RobotState.cpp index 44b7e4bfb1..33e22a1545 100644 --- a/wpilibc/wpilibC++/src/RobotState.cpp +++ b/wpilibc/wpilibC++/src/RobotState.cpp @@ -15,28 +15,28 @@ bool RobotState::IsDisabled() { bool RobotState::IsEnabled() { if (impl != 0) { - impl->IsEnabled(); + return impl->IsEnabled(); } return false; } bool RobotState::IsOperatorControl() { if (impl != 0) { - impl->IsOperatorControl(); + return impl->IsOperatorControl(); } return true; } bool RobotState::IsAutonomous() { if (impl != 0) { - impl->IsAutonomous(); + return impl->IsAutonomous(); } return false; } bool RobotState::IsTest() { if (impl != 0) { - impl->IsTest(); + return impl->IsTest(); } return false; }