Bugzilla – Attachment 718 Details for
Bug 1355
Impossible to stop capture with Siglent SDS1104X-E
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
SDS 1104X-E patch to fix the infinite loop
sds1104xe.patch (text/plain), 865 bytes, created by
voneiden
on 2021-01-19 00:11:16 CET
(
hide
)
Description:
SDS 1104X-E patch to fix the infinite loop
Filename:
MIME Type:
Creator:
voneiden
Created:
2021-01-19 00:11:16 CET
Size:
865 bytes
patch
obsolete
>diff --git a/src/hardware/siglent-sds/protocol.c b/src/hardware/siglent-sds/protocol.c >index af2f2d9b..584e5330 100644 >--- a/src/hardware/siglent-sds/protocol.c >+++ b/src/hardware/siglent-sds/protocol.c >@@ -544,7 +544,7 @@ SR_PRIV int siglent_sds_receive(int fd, int revents, void *cb_data) > sdi->driver->dev_acquisition_stop(sdi); > return TRUE; > } >- devc->num_block_bytes = len; >+ devc->num_block_bytes = 0; > devc->num_block_read = 0; > > if (len == -1) { >@@ -608,7 +608,7 @@ SR_PRIV int siglent_sds_receive(int fd, int revents, void *cb_data) > g_array_free(data, TRUE); > } > len = 0; >- if (devc->num_samples == (devc->num_block_bytes - SIGLENT_HEADER_SIZE)) { >+ if (devc->num_samples == devc->num_block_bytes) { > sr_dbg("Transfer has been completed."); > devc->num_header_bytes = 0; > devc->num_block_bytes = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1355
: 718