The initial voltage threshold in dev_open() was being set to a
default value in the devc->cur_threshold variable but not actually set
in the device itself.
Patch by Jörg Alpers <redacted>, thanks a lot!
devc->cur_samplerate = devc->samplerates[0];
}
devc->cur_samplerate = devc->samplerates[0];
}
- if (devc->cur_threshold == 0.0)
+ if (devc->cur_threshold == 0.0) {
devc->cur_threshold = thresholds[1][0];
devc->cur_threshold = thresholds[1][0];
+ return dslogic_set_voltage_threshold(sdi, devc->cur_threshold);
+ }