Fix: Bug #1188 DSLogic triggering
This commit is contained in:
parent
ab2b21fb68
commit
10481ef05d
|
@ -1020,8 +1020,8 @@ static void LIBUSB_CALL trigger_receive(struct libusb_transfer *transfer)
|
||||||
} else if (transfer->status == LIBUSB_TRANSFER_COMPLETED
|
} else if (transfer->status == LIBUSB_TRANSFER_COMPLETED
|
||||||
&& transfer->actual_length == sizeof(struct dslogic_trigger_pos)) {
|
&& transfer->actual_length == sizeof(struct dslogic_trigger_pos)) {
|
||||||
tpos = (struct dslogic_trigger_pos *)transfer->buffer;
|
tpos = (struct dslogic_trigger_pos *)transfer->buffer;
|
||||||
sr_info("tpos real_pos %d ram_saddr %d cnt %d", tpos->real_pos,
|
sr_info("tpos real_pos %d ram_saddr %d cnt_h %d cnt_l %d", tpos->real_pos,
|
||||||
tpos->ram_saddr, tpos->remain_cnt);
|
tpos->ram_saddr, tpos->remain_cnt_h, tpos->remain_cnt_l);
|
||||||
devc->trigger_pos = tpos->real_pos;
|
devc->trigger_pos = tpos->real_pos;
|
||||||
g_free(tpos);
|
g_free(tpos);
|
||||||
start_transfers(sdi);
|
start_transfers(sdi);
|
||||||
|
|
|
@ -77,10 +77,13 @@ struct dslogic_mode {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct dslogic_trigger_pos {
|
struct dslogic_trigger_pos {
|
||||||
|
uint32_t check_id;
|
||||||
uint32_t real_pos;
|
uint32_t real_pos;
|
||||||
uint32_t ram_saddr;
|
uint32_t ram_saddr;
|
||||||
uint32_t remain_cnt;
|
uint32_t remain_cnt_l;
|
||||||
uint8_t first_block[500];
|
uint32_t remain_cnt_h;
|
||||||
|
uint32_t status;
|
||||||
|
uint8_t first_block[488];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct dslogic_profile {
|
struct dslogic_profile {
|
||||||
|
|
Loading…
Reference in New Issue