]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hantek-dso/protocol.c
hantek-dso: fix 100MS/s
[libsigrok.git] / src / hardware / hantek-dso / protocol.c
index c74187ada435f2441e7aa3b88ed926194c9d530b..d2101f2a8170c892af1311c7a0e12f482aa3d84e 100644 (file)
@@ -326,7 +326,8 @@ static int dso2250_set_trigger_samplerate(const struct sr_dev_inst *sdi)
        }
 
        tmp = base / devc->samplerate;
-       if (tmp) {
+       /* Downsample only if really necessary */
+       if (tmp > 1) {
                /* Downsampling on */
                cmdstring[2] |= 2;
                /* Downsampler = 1comp((Base / Samplerate) - 2)