Explicitly handle the unknown error case in MonTryAndFixit

r1075 | ffr | 2006-08-25 12:16:23 +1000 (Fri, 25 Aug 2006) | 2 lines
This commit is contained in:
Ferdi Franceschini
2006-08-25 12:16:23 +10:00
committed by Douglas Clowes
parent b2ce43d554
commit a78ca021e6

View File

@@ -570,6 +570,8 @@ static int MonTryAndFixIt(CounterDriver *cntrData, int iCode) {
assert(self != NULL);
switch(iCode){
case 0: /* Unknown error */
return COTERM;
case NOTCONNECTED:
if (initRS232(self->controller) == 1)
return COREDO;