From ee4c55afe7e453e4e0f422fb4442d0cebdf0e332 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 6 May 2013 13:18:06 -0700 Subject: [PATCH] move SerialInterface constructor to header file --- interface/src/SerialInterface.cpp | 5 ----- interface/src/SerialInterface.h | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/interface/src/SerialInterface.cpp b/interface/src/SerialInterface.cpp index 2efe487304..3e906552b3 100644 --- a/interface/src/SerialInterface.cpp +++ b/interface/src/SerialInterface.cpp @@ -34,11 +34,6 @@ const int GRAVITY_SAMPLES = 200; // Use the first samples to const bool USING_INVENSENSE_MPU9150 = 1; -SerialInterface::SerialInterface() : - active(false), - _failedOpenAttempts(0) { -} - void SerialInterface::pair() { #ifdef __APPLE__ diff --git a/interface/src/SerialInterface.h b/interface/src/SerialInterface.h index 917c968c3f..7677562c53 100644 --- a/interface/src/SerialInterface.h +++ b/interface/src/SerialInterface.h @@ -36,7 +36,8 @@ extern const bool USING_INVENSENSE_MPU9150; class SerialInterface { public: - SerialInterface(); + SerialInterface() : active(false), + _failedOpenAttempts(0) {} void pair(); void readData();