aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2015-10-12 16:58:22 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2015-10-12 17:09:19 +0200
commitb45e26b5fa74bc18848d308d7ca321b001827d26 (patch)
treeec4bd366aa247521f222b048279cec343182e51d
parent73980b8570a925dc34b6c9926b7d5eeeb5bee0d8 (diff)
Don't apply a correction factor on the voltage measurements.HEADmaster
Reported-by: Thomas Petazonni <thomas.petazzoni@free-electrons.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--aep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/aep.c b/aep.c
index 05e0771..dfe5f9e 100644
--- a/aep.c
+++ b/aep.c
@@ -590,15 +590,15 @@ static int aep_read_frame(struct aep_device *dev, struct aep_frame *frame,
dev->next_frame++;
frame[i].channel[0][AEP_POWER] = aep_correction(dev->channel[0].rshunt, aep_char2float(&buffer[(i * 20) + 2]));
- frame[i].channel[0][AEP_VOLTAGE] = aep_correction(dev->channel[0].rshunt, aep_char2float(&buffer[(i * 20) + 4]));
+ frame[i].channel[0][AEP_VOLTAGE] = aep_char2float(&buffer[(i * 20) + 4]);
frame[i].channel[0][AEP_CURRENT] = aep_correction(dev->channel[0].rshunt, aep_char2float(&buffer[(i * 20) + 6]));
frame[i].channel[1][AEP_POWER] = aep_correction(dev->channel[1].rshunt, aep_char2float(&buffer[(i * 20) + 8]));
- frame[i].channel[1][AEP_VOLTAGE] = aep_correction(dev->channel[1].rshunt, aep_char2float(&buffer[(i * 20) + 10]));
+ frame[i].channel[1][AEP_VOLTAGE] = aep_char2float(&buffer[(i * 20) + 10]);
frame[i].channel[1][AEP_CURRENT] = aep_correction(dev->channel[1].rshunt, aep_char2float(&buffer[(i * 20) + 12]));
frame[i].channel[2][AEP_POWER] = aep_correction(dev->channel[2].rshunt, aep_char2float(&buffer[(i * 20) + 14]));
- frame[i].channel[2][AEP_VOLTAGE] = aep_correction(dev->channel[2].rshunt, aep_char2float(&buffer[(i * 20) + 16]));
+ frame[i].channel[2][AEP_VOLTAGE] = aep_char2float(&buffer[(i * 20) + 16]);
frame[i].channel[2][AEP_CURRENT] = aep_correction(dev->channel[2].rshunt, aep_char2float(&buffer[(i * 20) + 18]));
}