port-serial-at: allow specifying subsystem when creating a 'MMPortSerialAt'
Don't just assume that all AT ports are TTYs.
This commit is contained in:
@@ -206,7 +206,7 @@ mm_base_modem_grab_port (MMBaseModem *self,
|
||||
port = MM_PORT (mm_port_serial_qcdm_new (name));
|
||||
else if (ptype == MM_PORT_TYPE_AT) {
|
||||
/* AT port */
|
||||
port = MM_PORT (mm_port_serial_at_new (name));
|
||||
port = MM_PORT (mm_port_serial_at_new (name, MM_PORT_SUBSYS_TTY));
|
||||
|
||||
/* Set common response parser */
|
||||
mm_port_serial_at_set_response_parser (MM_PORT_SERIAL_AT (port),
|
||||
|
Reference in New Issue
Block a user