robustness
r1402 | dcl | 2007-01-17 09:43:33 +1100 (Wed, 17 Jan 2007) | 2 lines
This commit is contained in:
@@ -271,6 +271,9 @@ int NHQ200_Setup(pNHQ200 self, int iControl) /* Operations common to both Open a
|
||||
char pCommand[20];
|
||||
char pReply[132];
|
||||
|
||||
if (!self || !self->controller || !self->controller->pSock)
|
||||
return NHQ200__BADCOM;
|
||||
|
||||
/* MJL enable RS232 debugging mode. */
|
||||
setRS232Debug(self->controller,1);
|
||||
printf("***RS232 debug mode enabled for NHQ200***\n");fflush(stdout);
|
||||
|
||||
Reference in New Issue
Block a user