X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/blobdiff_plain/f7512fc58f5b70f8111abd3c9e738ddaf8cdb753..c7bd1ac5b92c4516d3186ad3218b45c60de8b01f:/kinect_upload_fw/kinect_upload_fw.c diff --git a/kinect_upload_fw/kinect_upload_fw.c b/kinect_upload_fw/kinect_upload_fw.c index 1466ccd..626b963 100644 --- a/kinect_upload_fw/kinect_upload_fw.c +++ b/kinect_upload_fw/kinect_upload_fw.c @@ -64,7 +64,7 @@ void dump_bl_cmd(bootloader_command cmd) { LOG("\n"); } -int get_first_reply() { +int get_first_reply(void) { unsigned char buffer[512]; int res; int transferred; @@ -83,7 +83,7 @@ int get_first_reply() { } -int get_reply() { +int get_reply(void) { unsigned char dump[512]; status_code buffer = ((status_code*)dump)[0]; int res; @@ -104,14 +104,14 @@ int get_reply() { if(fn_le32(buffer.status) != 0) { LOG("Notice reading reply: last uint32_t was nonzero: %d\n", buffer.status); } - + LOG("Reading reply: "); int i; for(i = 0; i < transferred; ++i) { LOG("%02X ", ((unsigned char*)(&buffer))[i]); } LOG("\n"); - + return res; } @@ -212,10 +212,9 @@ int main(int argc, char** argv) { res = get_reply(); seq++; // Now the device reenumerates. - + cleanup: libusb_close(dev); libusb_exit(NULL); return 0; } -