From: Soeren Apel Date: Sun, 7 Jun 2015 09:37:27 +0000 (+0200) Subject: yokogawa-dlm: Fix number of digital groups X-Git-Tag: libsigrok-0.4.0~481 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f77afcf0aa421af3f8ae29d7b877a9cd114f3339;p=libsigrok.git yokogawa-dlm: Fix number of digital groups --- diff --git a/src/hardware/yokogawa-dlm/protocol.c b/src/hardware/yokogawa-dlm/protocol.c index 90e25d4d..11b8638e 100644 --- a/src/hardware/yokogawa-dlm/protocol.c +++ b/src/hardware/yokogawa-dlm/protocol.c @@ -789,7 +789,7 @@ SR_PRIV int dlm_device_init(struct sr_dev_inst *sdi, int model_index) scope_models[model_index].analog_channels); devc->digital_groups = g_malloc0(sizeof(struct sr_channel_group*) * - scope_models[model_index].digital_channels); + scope_models[model_index].pods); /* Add analog channels, each in its own group. */ for (i = 0; i < scope_models[model_index].analog_channels; i++) {