Merge pull request #207 from birarda/master

add conditional closing of serial interface
This commit is contained in:
birarda 2013-05-06 13:37:30 -07:00
commit 188db4b6de

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