* 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:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user