hantek-4032l: Emit FPGA version log message.
This commit is contained in:
parent
eca9772971
commit
2bd5d17c70
|
@ -35,6 +35,8 @@ struct h4032l_status_packet {
|
||||||
uint32_t magic;
|
uint32_t magic;
|
||||||
uint32_t values;
|
uint32_t values;
|
||||||
uint32_t status;
|
uint32_t status;
|
||||||
|
uint32_t usbxi_data;
|
||||||
|
uint32_t fpga_version;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void finish_acquisition(struct sr_dev_inst *sdi)
|
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.
|
* First Transfer as next.
|
||||||
*/
|
*/
|
||||||
status = (struct h4032l_status_packet *)transfer->buffer;
|
status = (struct h4032l_status_packet *)transfer->buffer;
|
||||||
|
sr_dbg("FPGA version: 0x%x.", status->fpga_version);
|
||||||
if (status->magic != H4032L_STATUS_PACKET_MAGIC) {
|
if (status->magic != H4032L_STATUS_PACKET_MAGIC) {
|
||||||
devc->status = H4032L_STATUS_RESPONSE_STATUS;
|
devc->status = H4032L_STATUS_RESPONSE_STATUS;
|
||||||
} else if (status->status == 2) {
|
} else if (status->status == 2) {
|
||||||
|
|
Loading…
Reference in New Issue