From 5d22efd8a8376fb3534493c8220b15a41e31b6ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= <tgoettgens@gmail.com>
Date: Sat, 21 May 2022 20:52:43 +0200
Subject: [PATCH] remove duplicate GPS setting

---
 src/gps/GPS.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gps/GPS.cpp b/src/gps/GPS.cpp
index 70052dcfe..b79b788ed 100644
--- a/src/gps/GPS.cpp
+++ b/src/gps/GPS.cpp
@@ -284,9 +284,8 @@ uint32_t GPS::getSleepTime() const
 {
     uint32_t t = config.payloadVariant.position.gps_update_interval;
     bool gps_disabled = config.payloadVariant.position.gps_disabled;
-    bool loc_share_disabled = config.payloadVariant.position.location_share_disabled;
 
-    if (gps_disabled || loc_share_disabled)
+    if (gps_disabled)
         t = UINT32_MAX; // Sleep forever now
 
     if (t == UINT32_MAX)