aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Senger <senger@ibv-augsburg.net>2021-01-14 15:22:19 +0100
committerLukas Senger <senger@ibv-augsburg.net>2021-01-18 09:15:08 +0100
commit66010ed17e71714f35bb34a66cc53e1102a28651 (patch)
treef6e882998bf1cd981dba1530647af10b9ce10f41
parent268bf4f98af0adeef703f02469e47259c73be91e (diff)
simtech: fix updating bitmask during gps disabling
During disabling of gps sources the bitmask that keeps track of them is updated incorrectly. Instead of removing the current source, all other sources are removed from the mask. One problem that arises from this is, that when you enable GPS after it has been disabled completely (e.g. by disabling all GPS sources), the code will not send a "+CGPS=1,1" command because it incorrectly assumes that GPS is still enabled on the device.
-rw-r--r--plugins/simtech/mm-shared-simtech.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/simtech/mm-shared-simtech.c b/plugins/simtech/mm-shared-simtech.c
index f6921b61..99c2346e 100644
--- a/plugins/simtech/mm-shared-simtech.c
+++ b/plugins/simtech/mm-shared-simtech.c
@@ -293,7 +293,7 @@ disable_cgps_ready (MMBaseModem *self,
if (error)
g_task_return_error (task, error);
else {
- priv->enabled_sources &= source;
+ priv->enabled_sources &= ~source;
g_task_return_boolean (task, TRUE);
}
g_object_unref (task);