]> sigrok.org Git - libsigrok.git/commitdiff
Fix: Bug #1188 DSLogic triggering
authorJoerg Alpers <redacted>
Sun, 3 Jun 2018 10:23:16 +0000 (12:23 +0200)
committerUwe Hermann <redacted>
Sat, 16 Jun 2018 17:31:44 +0000 (19:31 +0200)
src/hardware/dreamsourcelab-dslogic/protocol.c
src/hardware/dreamsourcelab-dslogic/protocol.h

index 0f171518125c5aa320ba0791de3a875df182f8d9..584f3b1bec1a3a81e1ea59862faa6b9a3619c57d 100644 (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);
index 6d64f31f88d2a30d363b77b9e8eac742c5c25c60..6af7c823663ec19b3a65e2e40675e30525b4dd5e 100644 (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 {