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:
parent
0449e086c6
commit
e51e980f8b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue