From 784fa5882a9e48828f3ed4c2cb08cec9ec0814bf Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 6 May 2013 13:36:58 -0700 Subject: [PATCH] closing of serial interface should be conditional on __APPLE__ --- interface/src/SerialInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/src/SerialInterface.cpp b/interface/src/SerialInterface.cpp index c7d539935f..cca18f76cc 100644 --- a/interface/src/SerialInterface.cpp +++ b/interface/src/SerialInterface.cpp @@ -34,7 +34,9 @@ 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() {