From: Lars Poeschel <[email protected]>

As there are some more sources of +QIND: activated, do now only update
voltage when we get the
+QIND: "vbatt",-1
but not on things like
+QIND: "act","LTE"
or
+QIND: "csq",20,99
---
 plugins/quectel.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/plugins/quectel.c b/plugins/quectel.c
index 9aa63c1c..d11aba74 100644
--- a/plugins/quectel.c
+++ b/plugins/quectel.c
@@ -447,10 +447,12 @@ static void qind_notify(GAtResult *result, void 
*user_data)
        if (!g_at_result_iter_next_string(&iter, &type))
                return;
 
-       if (!g_at_result_iter_next_number(&iter, &event))
-               return;
+       if (g_strcmp0("vbatt", type)) {
+               if (!g_at_result_iter_next_number(&iter, &event))
+                       return;
 
-       voltage_handle(hw->modem, event);
+               voltage_handle(hw->modem, event);
+       }
 }
 
 static void power_notify(GAtResult *result, void *user_data)
-- 
2.27.0
_______________________________________________
ofono mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to