first attempt at packaging -- a few rough edges
[gregoa/zavai.git] / plugins / 50_sat_monitor.py
index 41be4b0bf4a0b5787664f51344211b25d59c8965..e44108463806dbf3b5c363fddecf2586d8f11318 100644 (file)
@@ -58,10 +58,10 @@ class SatelliteMonitor(zavai.Applet):
     def start(self, *args):
         if self.gps is None:
             self.init()
     def start(self, *args):
         if self.gps is None:
             self.init()
-        self.gps.monitor.connect(self.on_ubxdebug_packet)
+        self.gps.monitor.connect("satellites", self.on_ubxdebug_packet)
 
     def stop(self, *args):
 
     def stop(self, *args):
-        self.gps.monitor.disconnect(self.on_ubxdebug_packet)
+        self.gps.monitor.disconnect("satellites", self.on_ubxdebug_packet)
 
     def on_ubxdebug_packet(self, clid, length, data):
         # In zhone it is cbUBXDebugPacket
 
     def on_ubxdebug_packet(self, clid, length, data):
         # In zhone it is cbUBXDebugPacket