From e6be9a7d13e2dfe70747730c67fb81960fdb593e Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 18 Aug 2024 09:07:14 -0700 Subject: [PATCH] Update locationdata.py fix https://github.com/SpudGunMan/meshing-around/issues/44 --- modules/locationdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/locationdata.py b/modules/locationdata.py index a640840..515fd13 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -15,7 +15,7 @@ def where_am_i(lat=0, lon=0): whereIam = "" grid = mh.to_maiden(float(lat), float(lon)) - if int(lat) == 0 and int(lon) == 0: + if int(float(lat)) == 0 and int(float(lon)) == 0: logger.error("Location: No GPS data, try sending location") return NO_DATA_NOGPS