fx2lafw: Fix analog scaling.
Thanks to Patrick Remy <patrick.remy2000@gmail.com> for the fix.
This commit is contained in:
parent
e8b5205bf3
commit
2ab0679a34
|
@ -405,7 +405,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 = {
|
||||
|
|
Loading…
Reference in New Issue