From 8e4e5d049bad6aff94b2169bcea7b35a4a089985 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 15 Feb 2013 15:08:05 -0800 Subject: [PATCH] fix bad conditional serial pairing --- interface/src/SerialInterface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interface/src/SerialInterface.cpp b/interface/src/SerialInterface.cpp index 59338b6c63..c53d8dad55 100644 --- a/interface/src/SerialInterface.cpp +++ b/interface/src/SerialInterface.cpp @@ -31,13 +31,14 @@ const short NO_READ_MAXIMUM = 10; const short SAMPLES_TO_DISCARD = 100; void SerialInterface::pair() { + +#ifdef __APPLE__ // look for a matching gyro setup DIR *devDir; struct dirent *entry; int matchStatus; regex_t regex; -#ifdef __APPLE__ // for now this only works on OS X, where the usb serial shows up as /dev/tty.usb* if((devDir = opendir("/dev"))) { while((entry = readdir(devDir))) { @@ -56,6 +57,7 @@ void SerialInterface::pair() { closedir(devDir); } #endif + } // Init the serial port to the specified values