File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/hardware/sipeed-slogic-analyzer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ static void LIBUSB_CALL receive_transfer(struct libusb_transfer *transfer)
9999 g_async_queue_push (devc -> raw_data_queue , array );
100100 }
101101
102- if (devc -> samples_got_nbytes +
102+ if (! devc -> trigger_fired || devc -> samples_got_nbytes +
103103 devc -> num_transfers_used *
104104 devc -> per_transfer_nbytes <
105105 devc -> samples_need_nbytes ) {
@@ -126,7 +126,7 @@ static void LIBUSB_CALL receive_transfer(struct libusb_transfer *transfer)
126126 break ;
127127 }
128128
129- if (devc -> num_transfers_completed &&
129+ if (devc -> trigger_fired && devc -> num_transfers_completed &&
130130 (double )transfers_reached_duration / SR_KHZ (1 ) >
131131 (TRANSFERS_DURATION_TOLERANCE + 1 ) *
132132 devc -> per_transfer_duration ) {
You can’t perform that action at this time.
0 commit comments