robustness

r1402 | dcl | 2007-01-17 09:43:33 +1100 (Wed, 17 Jan 2007) | 2 lines
This commit is contained in:
Douglas Clowes
2007-01-17 09:43:33 +11:00
parent 724ed1c2cb
commit c4f4ea358d

View File

@@ -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);