Fix: Bug #1188 DSLogic triggering

This commit is contained in:
Joerg Alpers 2018-06-03 12:23:16 +02:00 committed by Uwe Hermann
parent ab2b21fb68
commit 10481ef05d
2 changed files with 7 additions and 4 deletions

View File

@ -1020,8 +1020,8 @@ static void LIBUSB_CALL trigger_receive(struct libusb_transfer *transfer)
} else if (transfer->status == LIBUSB_TRANSFER_COMPLETED
&& transfer->actual_length == sizeof(struct dslogic_trigger_pos)) {
tpos = (struct dslogic_trigger_pos *)transfer->buffer;
sr_info("tpos real_pos %d ram_saddr %d cnt %d", tpos->real_pos,
tpos->ram_saddr, tpos->remain_cnt);
sr_info("tpos real_pos %d ram_saddr %d cnt_h %d cnt_l %d", tpos->real_pos,
tpos->ram_saddr, tpos->remain_cnt_h, tpos->remain_cnt_l);
devc->trigger_pos = tpos->real_pos;
g_free(tpos);
start_transfers(sdi);

View File

@ -77,10 +77,13 @@ struct dslogic_mode {
};
struct dslogic_trigger_pos {
uint32_t check_id;
uint32_t real_pos;
uint32_t ram_saddr;
uint32_t remain_cnt;
uint8_t first_block[500];
uint32_t remain_cnt_l;
uint32_t remain_cnt_h;
uint32_t status;
uint8_t first_block[488];
};
struct dslogic_profile {