Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!ubc-vision!alberta!calgary!herr From: herr@calgary.UUCP (Charles Herr) Newsgroups: comp.sys.amiga Subject: Serial device Keywords: carrier detect checking Message-ID: <1270@vaxb.calgary.UUCP> Date: 3 Jan 88 03:51:14 GMT Organization: U. of Calgary, Calgary, Ab. Lines: 19 I am currently playing around with the serial device and would like the following question answered. Can anyone help? This is the problem: How do you check for Carrier Detect? Assuming I have opened the serial.device properly, would the following code work? Serial->IORser.io_Command = SRCMD_QUERY; DoIO(Serial); if(Serial->io_Status & `\040`) then carrier_detected = 1; else carrier_detected = 0; Maybe some of the variable names are wrong (I don't have my code handy right now), but I am doing the right thing? Trevor "The Geek" Paquette (via Charles "Non-Geek" Herr) herr@calgary.UUCP