samples: shields: lmp90100_evb: rtd: mark constants as const

Mark the constant coeffiecients used in the RTD resistance to
temperature conversion as const.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2021-02-20 19:03:22 +01:00 committed by Carles Cufí
commit e51e980f8b

View file

@ -43,8 +43,8 @@ static double sqrt(double value)
static double rtd_temperature(int nom, double resistance)
{
double a0 = 3.90802E-3;
double b0 = -0.58020E-6;
const double a0 = 3.90802E-3;
const double b0 = -0.58020E-6;
double temp;
temp = -nom * a0;