Skip to content

Commit

Permalink
Fixed pagination for digital channels.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredzo committed Aug 17, 2024
1 parent e41e10f commit 8b7eccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hardware/siglent-sds/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static int siglent_read_wave_e11(struct sr_dev_inst *sdi, struct sr_channel *ch,
if (sr_scpi_send(sdi->conn, "WAV:SOUR D%d", ch->index) != SR_OK)
return SR_ERR;
}
if (sr_scpi_send(sdi->conn, "WAV:STARt %d", devc->num_block_bytes) != SR_OK)
if (sr_scpi_send(sdi->conn, "WAV:STARt %d",digital ? (devc->num_block_bytes*8) : devc->num_block_bytes) != SR_OK) /* 8 points per byte in digital mode */
return SR_ERR;
if (sr_scpi_send(sdi->conn, "WAV:DATA?") != SR_OK)
return SR_ERR;
Expand Down

0 comments on commit 8b7eccf

Please sign in to comment.