]> sigrok.org Git - libsigrok.git/commitdiff
dreamsourcelab-dslogic: Fix incorrect default threshold setting.
authorUwe Hermann <redacted>
Thu, 14 Sep 2017 09:15:06 +0000 (11:15 +0200)
committerUwe Hermann <redacted>
Thu, 14 Sep 2017 09:15:06 +0000 (11:15 +0200)
This was leading to an invalid threshold config value and indirectly
to frontend issues.

Slightly modified patch from James Churchill <redacted>, thanks!

src/hardware/dreamsourcelab-dslogic/api.c

index 0838d672e2bd23dd03780dcfbdba60953a72e1d7..66c810372efd583880697b1724820cff39ea1b15 100644 (file)
@@ -360,7 +360,7 @@ static int dev_open(struct sr_dev_inst *sdi)
        }
 
        if (devc->cur_threshold == 0.0)
-               devc->cur_threshold = 1.5;
+               devc->cur_threshold = thresholds[1][0];
 
        return SR_OK;
 }