fx2lafw: Fix analog scaling.

Thanks to Patrick Remy <patrick.remy2000@gmail.com> for the fix.
This commit is contained in:
Uwe Hermann 2016-07-03 23:03:52 +02:00
parent e8b5205bf3
commit 2ab0679a34
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {