Request the right resource
authorEnrico Zini <enrico@enricozini.org>
Mon, 15 Jun 2009 15:23:13 +0000 (23:23 +0800)
committerEnrico Zini <enrico@enricozini.org>
Mon, 15 Jun 2009 15:23:13 +0000 (23:23 +0800)
zavai/gps.py

index bb551097979ec2eb3a247c8c593a3ddb73461c37..e861e1cc6d9339e6d7d81a141d99071c0faa5a4a 100755 (executable)
@@ -225,13 +225,13 @@ class GPX(zavai.Service):
         zavai.info("Starting GPX trace subsystem")
         self.started = True
         gps = self.registry.resource("gps")
-        gps.position.connect("gps", self.on_position_changed)
+        gps.position.connect("position", self.on_position_changed)
 
     def stop(self):
         if not self.started: return
         zavai.info("Stopping GPX trace subsystem")
         gps = self.registry.resource("gps")
-        gps.position.disconnect("gps", self.on_position_changed)
+        gps.position.disconnect("position", self.on_position_changed)
         self.stop_track()
         self.started = False