From dbef490724c34f068b9bb16b4f238dc0ef9e53c6 Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Wed, 6 Jun 2012 09:07:01 +1000 Subject: [PATCH] getpar has a FUPAOPT argument which should be returned as text not as an iVal. See pg 237 (Function Parser) of the SICS reference manual or the comment in fupa.h r3594 | ffr | 2012-06-06 09:07:01 +1000 (Wed, 06 Jun 2012) | 4 lines --- counter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/counter.c b/counter.c index 5f715dad..4b0dfb0b 100644 --- a/counter.c +++ b/counter.c @@ -1136,8 +1136,8 @@ PaRes.Arg[1].iVal, &fVal); if(iRet == 1) { - sprintf(pBueffel,"%s.%s %d = %f",argv[0],PaRes.Arg[0].text, - PaRes.Arg[1].iVal, fVal); + sprintf(pBueffel,"%s.%s %s = %f",argv[0],PaRes.Arg[0].text, + PaRes.Arg[1].text, fVal); SCWrite(pCon,pBueffel,eValue); return 1; }