Test adding of toggle actions
[gregoa/zavai.git] / zavai / gps.py
index 1c5930ef0e8ee7b4b7defd08bcdff15b307eb7f2..bb0d8ae8c7d5cbccb2370b6c27fc07b940e9a5b1 100755 (executable)
 #import sys
 #import os
 import os.path
-#import time
-#import struct
+import time
 #import signal
 #import optparse
-#import dbus
-#import dbus.mainloop.glib
+import dbus
 #import gobject
 import zavai
 
@@ -69,9 +67,11 @@ class GPSMonitor():
         self.debug_update()
 
     def on_satellites_changed(self, satellites):
-        self.gps_debug.request()
+        zavai.info("gps monitor: satellites changed")
+        self.debug_request()
 
     def on_ubxdebug_packet(self, clid, length, data):
+        zavai.info("gps monitor: UBX debug packet")
         for c in self.callbacks:
             c(clid, length, data)