hantek-4032l: Emit FPGA version log message.

This commit is contained in:
Uwe Hermann 2018-04-24 21:06:16 +02:00
parent eca9772971
commit 2bd5d17c70
1 changed files with 3 additions and 0 deletions

View File

@ -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) {