Commit 34ecc59f4d872c05d54c7e4b10f980bd37503d48

Con Kolivas 2011-07-15T08:56:52

Forgot to set total_devices for the purposes of finding a positive active_device.