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 <pelrun@gmail.com>, thanks!
This commit is contained in:
Uwe Hermann 2017-09-14 11:15:06 +02:00
parent 57837aeda5
commit 86a1571135
1 changed files with 1 additions and 1 deletions

View 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;
}