]> sigrok.org Git - libsigrok.git/blobdiff - hardware/rigol-ds/protocol.h
rigol-ds: Fix partial read handling in header parser.
[libsigrok.git] / hardware / rigol-ds / protocol.h
index 269e0f0f4677d72690fd8b696310478ffaadead9..2fe8d8653e99a80008f1a23a9f527a3600790de3 100644 (file)
@@ -131,6 +131,8 @@ struct dev_context {
        GSList *channel_entry;
        /* Number of bytes received for current channel. */
        uint64_t num_channel_bytes;
+       /* Number of bytes of block header read */
+       uint64_t num_header_bytes;
        /* Number of bytes in current data block, if 0 block header expected */
        uint64_t num_block_bytes;
        /* Number of data block bytes already read */