From 5c3da28b5e025c9114a4932f2a7fd5db4810839f Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Fri, 17 May 2002 16:02:02 +0000 Subject: [PATCH] Change croteria for setting eoff=egul --- src/rec/aiRecord.c | 3 ++- src/rec/aoRecord.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rec/aiRecord.c b/src/rec/aiRecord.c index 5296538a8..8d1dbd988 100644 --- a/src/rec/aiRecord.c +++ b/src/rec/aiRecord.c @@ -183,7 +183,8 @@ static long init_record(void *precord,int pass) return(S_dev_missingSup); } pai->init = TRUE; - if ((pai->linr == menuConvertLINEAR) && pdset->special_linconv) { + /*The following is for old device support that doesnt know about eoff*/ + if ((pai->eslo==1.0) && (pai->eoff==0.0)) { pai->eoff = pai->egul; } diff --git a/src/rec/aoRecord.c b/src/rec/aoRecord.c index b151745e3..cbe72ad00 100644 --- a/src/rec/aoRecord.c +++ b/src/rec/aoRecord.c @@ -182,7 +182,8 @@ static long init_record(pao,pass) return(S_dev_missingSup); } pao->init = TRUE; - if ((pao->linr == menuConvertLINEAR) && pdset->special_linconv) { + /*The following is for old device support that doesnt know about eoff*/ + if ((pao->eslo==1.0) && (pao->eoff==0.0)) { pao->eoff = pao->egul; }