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
3434 const bool USING_INVENSENSE_MPU9150 = 1;
3535
3636 SerialInterface::~SerialInterface() {
37+#ifdef __APPLE__
3738 close(_serialDescriptor);
39+#endif
3840 }
3941
4042 void SerialInterface::pair() {