- Added isactive command to scan. Such that collect can test for another scan running before starting

This commit is contained in:
2014-07-08 08:47:28 +02:00
parent 4fb94efe9a
commit 709118c286

6
scan.c
View File

@ -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 */