OpenKinect/libfreenect — pull request #361 by ofTheo (2014-01-23 18:08:06+00:00)
Title: Fix for disconnecting 1473 and K4W devices. Closes #340

This fixes a known issue for OS X users where the device re-enumerates within a small time period and causes a freeze.

This PR detects 1473 devices and K4W devices and sets the LED state to solid red.
It seems that in newer 1473 devices and 1473 devices with firmware updated by an Xbox the device will re-enumerate unless the LED is set.

The code is fairly compact, but it needs testing on a K4W device.
@wizgrav - would be great if you could pull and confirm if this sets K4W LED to red as well.

Most of this code is adapted from Drew Fisher's ( @zarvox ) proof of concept tilt code.
Note: it doesn't require the audio firmware to be flashed.

Closes #340 and addresses #316.

Signed-off-by: Theodore Watson (ofTheo)