Used new WPILIB2015 macro to mark differences with the old WPILib.
Change-Id: I9e45a22096bdb108f74f9dc341037d5f64506ff5
diff --git a/frc971/wpilib/joystick_sender.cc b/frc971/wpilib/joystick_sender.cc
index 236cc0f..4942eaa 100644
--- a/frc971/wpilib/joystick_sender.cc
+++ b/frc971/wpilib/joystick_sender.cc
@@ -12,7 +12,12 @@
namespace wpilib {
void JoystickSender::operator()() {
- DriverStation *ds = DriverStation::GetInstance();
+ DriverStation *ds =
+#ifdef WPILIB2015
+ DriverStation::GetInstance();
+#else
+ &DriverStation::GetInstance();
+#endif
::aos::SetCurrentThreadName("DSReader");
uint16_t team_id = ::aos::network::GetTeamNumber();