dragon: sensor: Last character of vpd calibration data was chomped
Given the vpd variable does not end with '\n', current code
was overwriting the last character with 0.
Overwrite \n only, add \0 otherwise.
TEST=Check with debug code that the whole vpd variable is taken in
11-30 11:27:03.576 475 475 D CrosECSensor: Writing
in_accel_x_calibbias to -7 for device iio:device0 succeeded.
11-30 11:28:44.670 477 477 D CrosECSensor: Writing
in_accel_x_calibbias to -79 for device iio:device0 succeeded.
Signed-off-by: Gwendal Grignou <firstname.lastname@example.org>
1 file changed