Used new WPILIB2015 macro to mark differences with the old WPILib.
Change-Id: I9e45a22096bdb108f74f9dc341037d5f64506ff5
diff --git a/frc971/wpilib/buffered_pcm.h b/frc971/wpilib/buffered_pcm.h
index 50f86fc..e2613d7 100644
--- a/frc971/wpilib/buffered_pcm.h
+++ b/frc971/wpilib/buffered_pcm.h
@@ -29,7 +29,9 @@
private:
// WPILib declares this pure virtual and then never calls it...
+#ifdef WPILIB2015
virtual void InitSolenoid() override {}
+#endif
void Set(int number, bool value);
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();