From: Uwe Hermann Date: Thu, 14 Sep 2017 09:15:06 +0000 (+0200) Subject: dreamsourcelab-dslogic: Fix incorrect default threshold setting. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=86a1571135e053c7e40f5d5c23da8aaa6677c3cf;p=libsigrok.git dreamsourcelab-dslogic: Fix incorrect default threshold setting. This was leading to an invalid threshold config value and indirectly to frontend issues. Slightly modified patch from James Churchill , thanks! --- diff --git a/src/hardware/dreamsourcelab-dslogic/api.c b/src/hardware/dreamsourcelab-dslogic/api.c index 0838d672..66c81037 100644 --- a/src/hardware/dreamsourcelab-dslogic/api.c +++ b/src/hardware/dreamsourcelab-dslogic/api.c @@ -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; }