From 3b7eccf4815844f33473eda6f78934700369fb5f Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Tue, 20 Mar 2007 10:55:16 +1100 Subject: [PATCH] Added "getnumchan" command to fetch the number of available counter channels for a scan object. Mark Koennecke agreed to this change on the 15/03/07. Search for Re: getnmonitor from scan.c and counter.c on plone for the transcript. r1673 | ffr | 2007-03-20 10:55:16 +1100 (Tue, 20 Mar 2007) | 6 lines --- scan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scan.c b/scan.c index 97183d4a..57d5c3f7 100644 --- a/scan.c +++ b/scan.c @@ -2236,6 +2236,7 @@ static int DumpScan(pScanData self, SConnection *pCon) else if(strcmp(argv[1],"getnumchan") == 0) { snprintf(pBueffel,511,"%s.getnumchan = %ld", argv[0], GetNMonitor((pCounter)self->pCounterData)); SCWrite(pCon,pBueffel,eValue); + return 1; } /*----------- setchannel */ else if(strcmp(argv[1],"setchannel") == 0)