libsigrok/src
Lars-Peter Clausen f18e0db3b8 demo: Handle the case when zero analog or logic channels were requested
The demo device has support for specifying the number of analog and logic
channels it should have. Currently this does not work correctly if one of
them is set to zero. Being able to set the number of channels to zero for
one of the channel types is quite useful for corner case testing though.

Make the following modifications to handle it correctly:

1) If the channel count is zero no channel group for that channel type
should be created since a channel group needs at least one channel.

2) Drop the check if logic_unitsize is less or equal to zero in
prepare_data() since this condition will always be true if the number of
logic channels is zero and it is not possible to create a demo device with
only analog channels.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2016-05-14 01:06:20 +02:00
..
dmm dmm: vc870: drop unused variable 2016-01-05 22:25:29 +01:00
hardware demo: Handle the case when zero analog or logic channels were requested 2016-05-14 01:06:20 +02:00
input Input/trace32_ad: Make the sample rate an option 2016-05-09 13:02:47 +02:00
lcr std_serial_dev_acquisition_stop(): Drop unneeded parameter. 2016-04-29 19:20:53 +02:00
modbus modbus: silence a build warning 2015-12-29 13:19:36 +01:00
output srzip: zip_append_analog(): Fix memory leaks 2016-05-14 01:02:00 +02:00
scale SR_DF_ANALOG_OLD and sr_datafeed_analog_old renames. 2015-10-20 23:32:45 +02:00
scpi Fix two compiler warnings. 2016-04-23 17:37:45 +02:00
transform transform/scale: Fix g_variant_new() argument. 2015-10-24 21:44:20 +02:00
analog.c analog: Add MQ Flag for four-wire measurements 2016-04-23 17:44:26 +02:00
backend.c sanity_check_all_drivers(): Add some code comments. 2016-04-17 14:50:18 +02:00
device.c Rename sr_dev_config_capabilities() to sr_dev_config_capabilities_list(). 2015-12-31 19:04:28 +01:00
drivers.c Rename 'ft2232h' driver to 'ftdi-la'. 2016-04-02 18:36:52 +02:00
error.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
ezusb.c drivers: Load firmware via new resource API 2015-10-01 15:44:55 +02:00
fallback.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
hwdriver.c hwdriver.c: Add missing SR_MQFLAG_FOUR_WIRE entry. 2016-04-23 17:45:49 +02:00
libsigrok-internal.h std_init(): Drop check if pass in driver is non-NULL 2016-05-09 15:10:26 +02:00
log.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
resource.c resource: Replace ssize_t with gssize to avoid unistd.h 2016-01-04 20:53:30 +01:00
scpi.h scpi/usbtmc: Implement Rigol DS1000 workaround on any firmware version. 2015-09-22 10:56:58 +02:00
serial.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
session.c dev_acquisition_start(): Ensure that sdi is always != NULL. 2016-04-29 19:26:17 +02:00
session_driver.c Remove unnecessary std_init() wrapper functions 2016-05-09 15:10:26 +02:00
session_file.c Enable loading of session files without total probes defined 2016-03-28 01:06:29 +02:00
soft-trigger.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
std.c std_init(): Drop check if pass in driver is non-NULL 2016-05-09 15:10:26 +02:00
strutil.c doxygen: Only use @since on public API functions. 2015-11-27 00:17:31 +01:00
sw_limits.c Add helper functions for software limits 2016-05-09 12:12:14 +02:00
trigger.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00
usb.c src/usb.c: Only allow hex characters in CONN_USB_VIDPID. 2015-12-29 13:21:01 +01:00
version.c Build: Include <config.h> first in all source files 2015-09-13 18:54:46 +02:00