Skip to content
Snippets Groups Projects
Commit c473fa61 authored by André's avatar André
Browse files

location_listener: location update notifier requires three parameters

the third parameter contains the location parameter specification
parent 1605b722
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,9 @@ class LocationListener:
def __init__(self):
self._data = {}
def _on_location_update(self, simple):
# Note: do not remove third parameter `paramSpec`
# because notify signal expects three parameters
def _on_location_update(self, simple, paramSpec=None):
location = simple.get_location()
timestamp = location.get_property("timestamp")[0]
lat = location.get_property("latitude")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment