From 4a609e564a9ccce3312a98d4a4eec4613031313f Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 31 Jan 2020 10:01:25 +0100 Subject: [PATCH] ublox: fix disabling of unsolicited events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The incorrect ready() method was being used while disabling, which ended up making the parent disable not being run at all. ublox/mm-broadband-modem-ublox.c:1178:1: error: ‘voice_disable_unsolicited_events_ready’ defined but not used [-Werror=unused-function] 1178 | voice_disable_unsolicited_events_ready (MMBroadbandModemUblox *self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- plugins/ublox/mm-broadband-modem-ublox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ublox/mm-broadband-modem-ublox.c b/plugins/ublox/mm-broadband-modem-ublox.c index 83933d8d..d5ce452a 100644 --- a/plugins/ublox/mm-broadband-modem-ublox.c +++ b/plugins/ublox/mm-broadband-modem-ublox.c @@ -1203,7 +1203,7 @@ modem_voice_disable_unsolicited_events (MMIfaceModemVoice *self, common_voice_enable_disable_unsolicited_events (MM_BROADBAND_MODEM_UBLOX (self), FALSE, - (GAsyncReadyCallback) voice_enable_unsolicited_events_ready, + (GAsyncReadyCallback) voice_disable_unsolicited_events_ready, task); }