Serial Line (cont’d)
static void EVBdisconnect()
{
FormPtr frmP;
/*
** connected?
*/
if (serRefNum != 0) {
SerClose(serRefNum);
serRefNum = 0;
} else {
frmP = FrmInitForm(DisconnectForm);
FrmDoDialog(frmP);
FrmDeleteForm(frmP);
}
}
SerReceive(serRefNum, serRcvQueue, 1, 0, &err);
if (err == serErrTimeOut) return;
Previous slide
Next slide
Back to first slide
View graphic version