From 056edc0d8a0820259c0494d822d2ad881e0cabb2 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 28 Aug 2016 23:41:35 -0500 Subject: [PATCH] Undo buggy change --- src/std/dev/devAiSoft.c | 3 +++ 1 file changed, 3 insertions(+) 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 */