From 8eb0e99394c2ffa361c9dd7eb22bc176e6e4c899 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 18 Nov 2015 01:08:44 +0100 Subject: [PATCH] Reduce the verbosity somewhat. --- bmusb.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/bmusb.cpp b/bmusb.cpp index 18ea353..62376db 100644 --- a/bmusb.cpp +++ b/bmusb.cpp @@ -806,6 +806,8 @@ void BMUSBCapture::configure_card() fprintf(stderr, "Error getting configuration: %s\n", libusb_error_name(rc)); exit(1); } + +#if 0 printf("%d interface\n", config->bNumInterfaces); for (int interface_number = 0; interface_number < config->bNumInterfaces; ++interface_number) { printf(" interface %d\n", interface_number); @@ -819,6 +821,7 @@ void BMUSBCapture::configure_card() } } } +#endif rc = libusb_set_configuration(devh, /*configuration=*/1); if (rc < 0) { @@ -947,12 +950,18 @@ void BMUSBCapture::configure_card() fprintf(stderr, "Error on control %d: %s\n", ctrls[req].index, libusb_error_name(rc)); exit(1); } - + + if (ctrls[req].index == 16 && rc == 4) { + printf("Card firmware version: 0x%02x%02x\n", value[2], value[3]); + } + +#if 0 printf("rc=%d: ep=%d@%d %d -> 0x", rc, ctrls[req].endpoint, ctrls[req].request, ctrls[req].index); for (int i = 0; i < rc; ++i) { printf("%02x", value[i]); } printf("\n"); +#endif } #if 0 @@ -1060,10 +1069,8 @@ void BMUSBCapture::configure_card() void BMUSBCapture::start_bm_capture() { - printf("starting capture\n"); int i = 0; for (libusb_transfer *xfr : iso_xfrs) { - printf("submitting transfer...\n"); int rc = libusb_submit_transfer(xfr); ++i; if (rc < 0) { -- 2.39.2