fix missing return from ITC4_Config, change SerialError to getRS232Error, adjust Formatting

r2415 | dcl | 2008-04-14 08:37:57 +1000 (Mon, 14 Apr 2008) | 2 lines
This commit is contained in:
Douglas Clowes
2008-04-14 08:37:57 +10:00
parent 895e52bfe9
commit 519bf308fa

View File

@@ -193,8 +193,8 @@
self = *pData; self = *pData;
/* 3 input channels see p52 */ /* 3 input channels see p52 */
/* BUG ALLOWS iControl=4 */ /* BUG ALLOWS iControl=4 */
if (iControl < 1 || iControl > 3) { if (iControl < 1 || iControl > 3) {
return 1; return 1;
} else { } else {
@@ -274,7 +274,7 @@
return iRet; return iRet;
} }
return 1;
} }
} }
/* --------------------------------------------------------------------------*/ /* --------------------------------------------------------------------------*/
@@ -443,7 +443,7 @@
strncpy(pError,"ITC4: Failed three times to write new set value to ITC4",iLen); strncpy(pError,"ITC4: Failed three times to write new set value to ITC4",iLen);
break; break;
default: default:
SerialError(iCode, pError,iLen); getRS232Error(iCode, pError,iLen);
break; break;
} }
} }