Hi,
Just discovered sigrok a few days ago, and it is just awesome. Thanks for
the great work.
I ran into a problem with the scaling of analog channels on my USBee clone.
Here's a trivial patch.
Cheers.
Patrick
diff --git a/src/hardware/fx2lafw/protocol.c
b/src/hardware/fx2lafw/protocol.c
index 8e69b77..474f653 100644
--- a/src/hardware/fx2lafw/protocol.c
+++ b/src/hardware/fx2lafw/protocol.c
@@ -401,7 +401,7 @@ SR_PRIV void mso_send_data_proc(struct sr_dev_inst *sdi,
for (i = 0; i < length; i++) {
devc->logic_buffer[i] = data[i * 2];
/* Rescale to -10V - +10V from 0-255. */
- devc->analog_buffer[i] = data[i * 2 + 1] - 128.0f / 12.8f;
+ devc->analog_buffer[i] = (data[i * 2 + 1] - 128.0f) / 12.8f;
};
const struct sr_datafeed_logic logic = {
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel