diff --git a/src/ioc/db/recGbl.c b/src/ioc/db/recGbl.c index f7dfee333..26799386d 100644 --- a/src/ioc/db/recGbl.c +++ b/src/ioc/db/recGbl.c @@ -287,7 +287,7 @@ void recGblCheckDeadband(epicsFloat64 *poldval, const epicsFloat64 newval, } else if (!!isnan(newval) != !!isnan(*poldval) || !!isinf(newval) != !!isinf(*poldval)) { /* one is NaN or +-inf, the other not -> send update */ delta = epicsINF; - } else if (signbit(newval) != signbit(*poldval)) { + } else if (isinf(newval) && newval != *poldval) { /* one is +inf, the other -inf -> send update */ delta = epicsINF; }