- res = get_first_reply(); // This first one doesn't have the usual magic bytes at the beginning, and is 96 bytes long - much longer than the usual 12-byte replies.
+
+ // This first one doesn't have the usual magic bytes at the beginning,
+ // and is 96 bytes long - much longer than the usual 12-byte replies.
+ res = get_first_reply();
if (res < 0) {
LOG("get_first_reply() failed");
goto out;
}
if (res < 0) {
LOG("get_first_reply() failed");
goto out;
}
- res = get_reply(); // I'm not sure why we do this twice here, but maybe it'll make sense later.
+ // I'm not sure why we do this twice here, but maybe it'll make sense
+ // later.
+ res = get_reply();
if (res < 0) {
LOG("First get_reply() failed");
goto out;
if (res < 0) {
LOG("First get_reply() failed");
goto out;
@@ -194,7+200,7 @@ static int upload_firmware(FILE *fw) {
dump_bl_cmd(cmd);
// Send it off!
transferred = 0;
dump_bl_cmd(cmd);
// Send it off!
transferred = 0;
- res = libusb_bulk_transfer(dev, KINECT_AUDIO_OUT_EP, (unsigned char*)&cmd, sizeof(cmd), &transferred, 0);
+ res = libusb_bulk_transfer(dev, KINECT_AUDIO_OUT_EP, (unsigned char*)&cmd, sizeof(cmd), &transferred, 0);