From a78ca021e622194779b9c2d861e058e8dffed2ab Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Fri, 25 Aug 2006 12:16:23 +1000 Subject: [PATCH] Explicitly handle the unknown error case in MonTryAndFixit r1075 | ffr | 2006-08-25 12:16:23 +1000 (Fri, 25 Aug 2006) | 2 lines --- site_ansto/counterdriv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site_ansto/counterdriv.c b/site_ansto/counterdriv.c index aacea7cc..16e4fb81 100644 --- a/site_ansto/counterdriv.c +++ b/site_ansto/counterdriv.c @@ -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;