Handle incomplete reads.

r1055 | ffr | 2006-08-10 12:45:17 +1000 (Thu, 10 Aug 2006) | 2 lines
This commit is contained in:
Ferdi Franceschini
2006-08-10 12:45:17 +10:00
committed by Douglas Clowes
parent d316f5950c
commit fe3af60196

View File

@@ -422,6 +422,7 @@ static int MonGetError(CounterDriver *cntrData, int *iCode, char *error, int iEr
case TIMEOUT: case TIMEOUT:
case BADSEND: case BADSEND:
case BADMEMORY: case BADMEMORY:
case INCOMPLETE:
getRS232Error(*iCode, error, iErrLen); getRS232Error(*iCode, error, iErrLen);
break; break;
default: default:
@@ -453,6 +454,7 @@ static int MonTryAndFixIt(CounterDriver *cntrData, int iCode) {
case BADSEND: case BADSEND:
case TIMEOUT: case TIMEOUT:
case BADMEMORY: /* Won't happen if MonConnect sets the send terminator */ case BADMEMORY: /* Won't happen if MonConnect sets the send terminator */
case INCOMPLETE:
return COREDO; return COREDO;
} }
return COTERM; return COTERM;