History

closing of serial interface should be conditional on __APPLE__

Stephen Birarda committed 13 years ago

Commit 784fa581 parent 2563d6a1 file · +2 −0Browse files

Showing the changes to interface/src/SerialInterface.cpp (1 of 1 file). Show all

Unified · Split

interface/src/SerialInterface.cpp+2−0
@@ -34,7 +34,9 @@ const int GRAVITY_SAMPLES = 200; // Use the first samples to · 33 unmodified lines
34const bool USING_INVENSENSE_MPU9150 = 1;34const bool USING_INVENSENSE_MPU9150 = 1;
35 35
36SerialInterface::~SerialInterface() {36SerialInterface::~SerialInterface() {
37#ifdef __APPLE__
37 close(_serialDescriptor);38 close(_serialDescriptor);
39#endif
38}40}
39 41
40void SerialInterface::pair() {42void SerialInterface::pair() {