From: Uwe Hermann Date: Tue, 24 Apr 2018 19:06:16 +0000 (+0200) Subject: hantek-4032l: Emit FPGA version log message. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2bd5d17c70dc7bab6dbf9aed0919fbc1049f79ba;p=libsigrok.git hantek-4032l: Emit FPGA version log message. --- diff --git a/src/hardware/hantek-4032l/protocol.c b/src/hardware/hantek-4032l/protocol.c index 7a2aa56c..fb18e897 100644 --- a/src/hardware/hantek-4032l/protocol.c +++ b/src/hardware/hantek-4032l/protocol.c @@ -35,6 +35,8 @@ struct h4032l_status_packet { uint32_t magic; uint32_t values; uint32_t status; + uint32_t usbxi_data; + uint32_t fpga_version; }; static void finish_acquisition(struct sr_dev_inst *sdi) @@ -122,6 +124,7 @@ void LIBUSB_CALL h4032l_usb_callback(struct libusb_transfer *transfer) * First Transfer as next. */ status = (struct h4032l_status_packet *)transfer->buffer; + sr_dbg("FPGA version: 0x%x.", status->fpga_version); if (status->magic != H4032L_STATUS_PACKET_MAGIC) { devc->status = H4032L_STATUS_RESPONSE_STATUS; } else if (status->status == 2) {