samsung: custom configuration for AT serial ports
This commit is contained in:
@@ -660,9 +660,26 @@ modem_3gpp_disable_unsolicited_events (MMIfaceModem3gpp *self,
|
||||
static void
|
||||
setup_ports (MMBroadbandModem *self)
|
||||
{
|
||||
MMAtSerialPort *ports[2];
|
||||
guint i;
|
||||
|
||||
/* Call parent's setup ports first always */
|
||||
MM_BROADBAND_MODEM_CLASS (mm_broadband_modem_samsung_parent_class)->setup_ports (self);
|
||||
|
||||
ports[0] = mm_base_modem_peek_port_primary (MM_BASE_MODEM (self));
|
||||
ports[1] = mm_base_modem_peek_port_secondary (MM_BASE_MODEM (self));
|
||||
|
||||
/* Configure AT ports */
|
||||
for (i = 0; i < 2; i++) {
|
||||
if (!ports[i])
|
||||
continue;
|
||||
|
||||
g_object_set (ports[i],
|
||||
MM_PORT_CARRIER_DETECT, FALSE,
|
||||
MM_SERIAL_PORT_SEND_DELAY, (guint64) 0,
|
||||
NULL);
|
||||
}
|
||||
|
||||
/* Now reset the unsolicited messages we'll handle when enabled */
|
||||
mm_iface_icera_modem_set_unsolicited_events_handlers (MM_BROADBAND_MODEM (self), FALSE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user