Commit 36ef1f33 authored by benjamin.franksen's avatar benjamin.franksen
Browse files

account for new (in 3.14) menuConvertSLOPE in devAxHwClient.c

parent f2362d90
......@@ -130,11 +130,6 @@ static long special_linconv(struct aiRecord *prec,int after)
prec->eoff = (rawf * prec->egul - rawl * prec->eguf) / (rawf - rawl);
prec->eslo = (prec->eguf - prec->egul) / (rawf - rawl);
}
else
{
prec->eoff = 0;
prec->eslo = 1;
}
return OK;
}
......@@ -127,6 +127,7 @@ static long write_value(struct aoRecord *prec)
{
case menuConvertNO_CONVERSION:
break;
case menuConvertSLOPE:
case menuConvertLINEAR:
value = value * prec->eslo + prec->egul;
break;
......@@ -159,11 +160,6 @@ static long special_linconv(struct aoRecord *prec,int after)
prec->eoff = (rawf * prec->egul - rawl * prec->eguf) / (rawf - rawl);
prec->eslo = (prec->eguf - prec->egul) / (rawf - rawl);
}
else
{
prec->eoff = 0;
prec->eslo = 1;
}
return OK;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment