Hello,
this patch is meant to fix the error "Default Voltage_Threshold" is not
programmed into the HW.
Described is the behavior in this bug
https://sigrok.org/bugzilla/show_bug.cgi?id=1149
Do not close Bug-ID 1149, because the actual function for Pulseview has
not yet been solved!
Check patch use DSlogic Pro + sigrok-cli and pulseview.
Jörg
--- /home/jo/debug_sigrok-cli/from_git/libsigrok/src/hardware/dreamsourcelab-dslogic/api.c
+++ /home/jo/debug_sigrok-cli/libsigrok/src/hardware/dreamsourcelab-dslogic/api.c
@@ -360,9 +360,10 @@
devc->cur_samplerate = devc->samplerates[0];
}
- if (devc->cur_threshold == 0.0)
+ if (devc->cur_threshold == 0.0) {
devc->cur_threshold = thresholds[1][0];
-
+ return dslogic_set_voltage_threshold(sdi, devc->cur_threshold);
+ }
return SR_OK;
}
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel