]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hantek-6xxx/api.c
drivers: Use NUM_CHANNELS in favor of hardcoded values.
[libsigrok.git] / src / hardware / hantek-6xxx / api.c
index 8d0d280d6ab2434e0f9ec49deeecc900715aa450..4e64808932e5af1d2e189ee14d1fa069cf58bf38 100644 (file)
@@ -530,7 +530,7 @@ static void send_chunk(struct sr_dev_inst *sdi, unsigned char *buf,
                return;
        }
 
-       for (int ch = 0; ch < 2; ch++) {
+       for (int ch = 0; ch < NUM_CHANNELS; ch++) {
                if (!devc->ch_enabled[ch])
                        continue;