diff --git a/site_ansto/hardsup/sct_lfprot.c b/site_ansto/hardsup/sct_lfprot.c index 3733959a..f613dcc4 100644 --- a/site_ansto/hardsup/sct_lfprot.c +++ b/site_ansto/hardsup/sct_lfprot.c @@ -146,8 +146,8 @@ int LFGenReading(Ascon *a) do { ret = AsconReadChar(a->fd, &chr); if(ret<=0) { - AsconError(a, "AsconReadChar failed:", 0); - a->state = AsconReadDone; + AsconError(a, "AsconReadChar failed in LFGenReading:", 0); + //a->state = AsconReadDone; return 0; } else { HEAD = (BYTE)chr; @@ -157,13 +157,13 @@ int LFGenReading(Ascon *a) // read LEN info ret = AsconReadChar(a->fd, &chr); if(ret<=0) { - AsconError(a, "AsconReadChar failed:", 0); - a->state = AsconReadDone; + AsconError(a, "AsconReadChar failed in LFGenReading:", 0); + //a->state = AsconReadDone; return 0; } LEN = (BYTE)chr; if(LEN<2) { - AsconError(a, "Reading Error from the device, wrong LEN info", 0); + AsconError(a, "Reading Error from the LF AG1010 device, wrong LEN info", 0); a->state = AsconReadDone; return 0; } @@ -177,8 +177,8 @@ int LFGenReading(Ascon *a) while(indfd, &chr); if (ret <= 0) { - AsconError(a, "AsconReadChar failed:", 0); - a->state = AsconReadDone; + AsconError(a, "AsconReadChar failed in LFGenReading:", 0); + //a->state = AsconReadDone; return 0; } lfchar[ind] = (BYTE)chr; ind++;