diff options
author | Dan Williams <dcbw@redhat.com> | 2009-07-06 11:40:22 -0400 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-07-06 11:40:22 -0400 |
commit | 736aa0d2d63cf62e7e2fe3c6e25ddf6b57f6ff05 (patch) | |
tree | b82239e25796040e71c97dff9d8b7f7fa0b337c5 /plugins/mm-modem-zte.c | |
parent | 869c69e223208564302ba3be074dafbdf1b02cc2 (diff) |
serial: rework 'connected' logic
So many modems just don't implement carrier detect that it makes
the previous 'connected' logic useless, so base it off connect/disconnect
and fix up a few places that didn't check connect status before
trying to send commands. Also ensure the serial port is unlocked
for PPP to use when connected.
Diffstat (limited to 'plugins/mm-modem-zte.c')
-rw-r--r-- | plugins/mm-modem-zte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mm-modem-zte.c b/plugins/mm-modem-zte.c index 087da567..0bec7f60 100644 --- a/plugins/mm-modem-zte.c +++ b/plugins/mm-modem-zte.c @@ -134,7 +134,7 @@ enable (MMModem *modem, g_assert (primary); if (!do_enable) { - if (mm_serial_port_is_connected (primary)) + if (mm_port_get_connected (MM_PORT (primary))) mm_serial_port_flash (primary, 1000, disable_flash_done, info); else disable_flash_done (primary, info); |