From 480e12c34e574e6c282f76344eda05dbfaa66515 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Thu, 4 Apr 2024 11:22:31 +0000 Subject: base-modem-at: switch to use the MMIfacePortAt by default The whole codebase is updated to assume the MMBaseModem AT operations require an object implementing the MMIfacePortAt interface, instead of a MMPortSerialAt object. In the places where we know the port is a MMPortSerialAt, e.g. when we query explicitly for the primary or secondary serial AT port, we will use an explicit MM_IFACE_PORT_AT() cast when calling the AT command method. In the places where we get_best_at_port() we're going to assume that we don't know the port type. This method will be updated in a follow up commit to support the MMIfacePortAt interface as well. --- src/plugins/simtech/mm-shared-simtech.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/simtech/mm-shared-simtech.c') diff --git a/src/plugins/simtech/mm-shared-simtech.c b/src/plugins/simtech/mm-shared-simtech.c index 99c2346e..240483b5 100644 --- a/src/plugins/simtech/mm-shared-simtech.c +++ b/src/plugins/simtech/mm-shared-simtech.c @@ -585,7 +585,7 @@ run_voice_enable_disable_unsolicited_events (GTask *task) if (port) { mm_base_modem_at_command_full (MM_BASE_MODEM (self), - port, + MM_IFACE_PORT_AT (port), ctx->clcc_command, 3, FALSE, -- cgit v1.2.3-70-g09d2