diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2015-10-12 16:58:22 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2015-10-12 17:09:19 +0200 |
commit | b45e26b5fa74bc18848d308d7ca321b001827d26 (patch) | |
tree | ec4bd366aa247521f222b048279cec343182e51d | |
parent | 73980b8570a925dc34b6c9926b7d5eeeb5bee0d8 (diff) |
Reported-by: Thomas Petazonni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r-- | aep.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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])); } |