Keep the last error message.
r1076 | ffr | 2006-08-25 12:17:32 +1000 (Fri, 25 Aug 2006) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
a78ca021e6
commit
f2ca9eeb21
@@ -577,7 +577,6 @@ static void DMC2280Error(void *pData, int *iCode, char *error, int errLen){
|
||||
return;
|
||||
}
|
||||
}
|
||||
error = self->errorMsg;
|
||||
*iCode = self->errorCode;
|
||||
switch(*iCode){
|
||||
case NOTCONNECTED:
|
||||
@@ -634,7 +633,7 @@ static void DMC2280Error(void *pData, int *iCode, char *error, int errLen){
|
||||
/* FIXME What's the default */
|
||||
break;
|
||||
}
|
||||
self->errorCode = 0;
|
||||
strncpy(self->errorMsg,error,(size_t)errLen);
|
||||
}
|
||||
|
||||
/** \brief Attempts to recover from an error. Implements the TryAndFixIt
|
||||
|
||||
Reference in New Issue
Block a user