From 4174575d5d7d45dfafa7bef18815cef9482a376a Mon Sep 17 00:00:00 2001 From: Andrey Skvortsov Date: Sun, 25 Jun 2023 16:44:20 +0300 Subject: [PATCH] quectel: fix debug output if QGPS isn't supported FEATURE_NOT_SUPPORTED is equal 1 in the enum FeatureSupport, as a result even if QGPS isn't supported by modem debug message printed available support. --- src/plugins/quectel/mm-shared-quectel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/quectel/mm-shared-quectel.c b/src/plugins/quectel/mm-shared-quectel.c index f07096b6..816a5709 100644 --- a/src/plugins/quectel/mm-shared-quectel.c +++ b/src/plugins/quectel/mm-shared-quectel.c @@ -573,7 +573,7 @@ probe_qgps_ready (MMBaseModem *_self, FEATURE_SUPPORTED : FEATURE_NOT_SUPPORTED); mm_obj_dbg (self, "GPS management with +QGPS is %ssupported", - priv->qgps_supported ? "" : "not "); + priv->qgps_supported == FEATURE_SUPPORTED ? "" : "not "); /* Recover parent sources */ sources = GPOINTER_TO_UINT (g_task_get_task_data (task));