Skip to content

Commit 1637443

Browse files
JordanYatesdleach02
authored andcommitted
sensor: current_amp: request calibration
Request calibration on ADC samples to improve the accuracy of the ADC outputs and therefore the final measured current. Signed-off-by: Jordan Yates <[email protected]>
1 parent 28b7494 commit 1637443

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/sensor/current_amp/current_amp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ static int current_init(const struct device *dev)
152152

153153
data->sequence.buffer = &data->raw;
154154
data->sequence.buffer_size = sizeof(data->raw);
155+
data->sequence.calibrate = true;
155156

156157
return 0;
157158
}

0 commit comments

Comments
 (0)