From 75ba88923fd564bd4a350394d0d54a0290622eb2 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 7 May 2013 17:09:49 -0700 Subject: [PATCH] remove the serial interface close in destructor, incorrect solution --- interface/src/SerialInterface.cpp | 6 ------ interface/src/SerialInterface.h | 1 - 2 files changed, 7 deletions(-) diff --git a/interface/src/SerialInterface.cpp b/interface/src/SerialInterface.cpp index 3453321d26..8929dbb2f5 100644 --- a/interface/src/SerialInterface.cpp +++ b/interface/src/SerialInterface.cpp @@ -33,12 +33,6 @@ const int GRAVITY_SAMPLES = 200; // Use the first samples to const bool USING_INVENSENSE_MPU9150 = 1; -SerialInterface::~SerialInterface() { -#ifdef __APPLE__ - close(_serialDescriptor); -#endif -} - void SerialInterface::pair() { #ifdef __APPLE__ diff --git a/interface/src/SerialInterface.h b/interface/src/SerialInterface.h index 4aafb46994..e84fa2ddde 100644 --- a/interface/src/SerialInterface.h +++ b/interface/src/SerialInterface.h @@ -38,7 +38,6 @@ class SerialInterface { public: SerialInterface() : active(false), _failedOpenAttempts(0) {} - ~SerialInterface(); void pair(); void readData();