closing of serial interface should be conditional on __APPLE__

This commit is contained in:
Stephen Birarda 2013-05-06 13:36:58 -07:00
parent 2563d6a093
commit 784fa5882a

View file

@ -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() {