* fhandler_serial.cc: Change 'must_init_serial_line capability'

to 'supports_reading_modem_output_lines' throughout (negated meaning).
	* wincap.cc: Ditto.
	* wincap.h: Ditto.
This commit is contained in:
Corinna Vinschen
2002-07-24 11:01:37 +00:00
parent 564c62b811
commit 0a73fce00c
4 changed files with 22 additions and 15 deletions

View File

@ -272,7 +272,7 @@ fhandler_serial::open (path_conv *, int flags, mode_t mode)
request TIOCMGET could return correct value of RTS and DTR lines.
Important only for Win 9x systems */
if (wincap.must_init_serial_line ())
if (!wincap.supports_reading_modem_output_lines ())
{
if (EscapeCommFunction (get_handle (), SETDTR) == 0)
system_printf ("couldn't set initial state of DTR for %s, %E", get_name ());
@ -409,7 +409,7 @@ fhandler_serial::ioctl (unsigned int cmd, void *buffer)
modemStatus |= TIOCM_RI;
if (modemLines & MS_RLSD_ON)
modemStatus |= TIOCM_CD;
if (wincap.must_init_serial_line ())
if (!wincap.supports_reading_modem_output_lines ())
modemStatus |= rts | dtr;
else
{