From 709118c286585d2e2ca0cdcb27c95e62885a3d26 Mon Sep 17 00:00:00 2001 From: Mark Koennecke Date: Tue, 8 Jul 2014 08:47:28 +0200 Subject: [PATCH] - Added isactive command to scan. Such that collect can test for another scan running before starting --- scan.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scan.c b/scan.c index 3d9823dd..97ca1140 100644 --- a/scan.c +++ b/scan.c @@ -1724,6 +1724,12 @@ int ScanWrapper(SConnection * pCon, SicsInterp * pSics, void *pData, SCWrite(pCon, pBueffel, eValue); return 1; } +/*-------- isactive */ + else if (strcmp(argv[1], "isactive") == 0) { + snprintf(pBueffel,sizeof(pBueffel)-1, "%s.active = %d", argv[0], self->iActive); + SCWrite(pCon, pBueffel, eValue); + return 1; + } /*--------- getvardata */ else if (strcmp(argv[1], "getvardata") == 0) { /* we need an integer parameter saying which */