From: Kumar Abhishek Date: Sat, 23 Sep 2017 06:38:21 +0000 (+0530) Subject: beaglelogic: Changes for proper operation in PulseView X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f955ffe83faec04dd6bca733a5a0ccf754fdbf1c;p=libsigrok.git beaglelogic: Changes for proper operation in PulseView Set samplelimit to a sane value (was causing PulseView to crash earlier), as well as advertise samplerate using SR_CONF_LIST so that PulseView can show the sample rates. Signed-off-by: Kumar Abhishek --- diff --git a/src/hardware/beaglelogic/api.c b/src/hardware/beaglelogic/api.c index 3188d8f3..25ac0a6e 100644 --- a/src/hardware/beaglelogic/api.c +++ b/src/hardware/beaglelogic/api.c @@ -33,7 +33,7 @@ static const uint32_t drvopts[] = { static const uint32_t devopts[] = { SR_CONF_CONTINUOUS, SR_CONF_LIMIT_SAMPLES | SR_CONF_GET | SR_CONF_SET, - SR_CONF_SAMPLERATE | SR_CONF_GET | SR_CONF_SET, + SR_CONF_SAMPLERATE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST, SR_CONF_TRIGGER_MATCH | SR_CONF_LIST, SR_CONF_CAPTURE_RATIO | SR_CONF_GET | SR_CONF_SET, SR_CONF_NUM_LOGIC_CHANNELS | SR_CONF_GET, @@ -67,7 +67,7 @@ static struct dev_context *beaglelogic_devc_alloc(void) /* Default non-zero values (if any) */ devc->fd = -1; - devc->limit_samples = (uint64_t)-1; + devc->limit_samples = (uint64_t)10000000; devc->tcp_buffer = 0; return devc;