diff --git a/tasscan.c b/tasscan.c index 4db056e..128038e 100644 --- a/tasscan.c +++ b/tasscan.c @@ -697,13 +697,15 @@ static int RunPolScan(pScanData self, int iPoint) pTAS->iPOL = 0; while (fgets(buffer, 131, fd) != NULL) { /* - ignore all errors here - */ - InterpExecute(self->pSics, self->pCon, buffer); - strtolower(buffer); - if (strstr(buffer, "co") != NULL) { - pTAS->iPOL++; - self->WriteScanPoints(self, iPoint); + ignore all errors here + */ + if (buffer[0] != '#') { + InterpExecute(self->pSics,self->pCon,buffer); + strtolower(buffer); + if(strstr(buffer,"co") != NULL){ + pTAS->iPOL++; + self->WriteScanPoints(self,iPoint); + } } /* but allow for interrupts