]> sigrok.org Git - libsigrok.git/commitdiff
yokogawa-dlm: Fix number of digital groups
authorSoeren Apel <redacted>
Sun, 7 Jun 2015 09:37:27 +0000 (11:37 +0200)
committerUwe Hermann <redacted>
Mon, 22 Jun 2015 22:15:56 +0000 (00:15 +0200)
src/hardware/yokogawa-dlm/protocol.c

index 90e25d4d599e85a0ab6ec6bc1cf4c95af9a24db1..11b8638e913ce940995fa4635ec8e568a2f97628 100644 (file)
@@ -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++) {