pass through comments for display on the map

This commit is contained in:
Jakob Ketterl
2019-08-11 18:42:41 +02:00
parent e5dffc3d9f
commit 12c92928fa
3 changed files with 14 additions and 4 deletions

View File

@ -91,7 +91,8 @@ class KissClient(object):
logger.debug(data)
if "lat" in data and "lon" in data:
Map.getSharedInstance().updateLocation(data["source"], LatLngLocation(data["lat"], data["lon"]), "APRS")
loc = LatLngLocation(data["lat"], data["lon"], data["comment"] if "comment" in data else None)
Map.getSharedInstance().updateLocation(data["source"], loc, "APRS")
return data
def parseAprsData(self, data):