thp/psmoveapi — pull request #131 by whitingjp (2014-09-29 15:30:46+00:00)
Title: Pairing on OSX 10.10

When pairing on OSX10.10 the pairing util previously stalled forever while waiting for blued to shutdown. It seems the blued behavior on bluetooth start/stop is different on OSX10.10 compared to prior versions. In 10.10, if you turn off bluetooth blued continues running, and also if you kill blued manually it is quickly replaced by the system (<1 sec). So using 'is blued running?' is not a viable way of detecting if bluetooth has finished shutting down on OSX10.

Furthermore, it seems on OSX10.10 it is *not* necessary to actually turn off bluetooth in order to pair a controller successfully. So this change outright skips turning bluetooth off/on steps on OSX10.10

It is worth mentioning that pairing on 10.10 suffers from a similar "must pair controller twice" issue as is encountered on 10.7 This behavior is the same whether bluetooth is stopped or left running.