diff --git a/src/std/dev/devAiSoft.c b/src/std/dev/devAiSoft.c index ba669f4c9..74a2a759a 100644 --- a/src/std/dev/devAiSoft.c +++ b/src/std/dev/devAiSoft.c @@ -61,6 +61,9 @@ static long read_ai(aiRecord *prec) { double val; + if (dbLinkIsConstant(&prec->inp)) + return 2; + if (!dbGetLink(&prec->inp, DBR_DOUBLE, &val, 0, 0)) { /* Apply smoothing algorithm */