Even more debugging
authorEnrico Zini <enrico@enricozini.org>
Tue, 14 Jul 2009 16:51:18 +0000 (17:51 +0100)
committerEnrico Zini <enrico@enricozini.org>
Tue, 14 Jul 2009 16:51:18 +0000 (17:51 +0100)
vala/gps.vala

index ca654260bb38952d7f459e510d235fc06a6ce0a1..5646dd53cc4f2e573a164ab135683dbafe7cb145 100644 (file)
@@ -55,17 +55,21 @@ public class GPSMonitor : zavai.Service
 
        protected void debug_update() throws GLib.Error
        {
+               zavai.log.debug("UPDATE");
                if (debug_busy != -1)
                        return;
+               zavai.log.debug("UPD1");
                int pending = debug_want & (~debug_have) & (~debug_error);
                if (pending == 0)
                        return;
+               zavai.log.debug("UPD2");
                for (int i = 0; i < NAV_MAX; ++i)
                        if ((pending & (1<<i)) != 0)
                        {
                                debug_busy = i;
                                break;
                        }
+               zavai.log.debug("UPD3 " + filters[debug_busy]);
 
                ubx.SetDebugFilter(
                        filters[debug_busy],
@@ -73,6 +77,7 @@ public class GPSMonitor : zavai.Service
                        on_debug_reply
 //                     on_debug_error
                );
+               zavai.log.debug("UPD4");
        }
 
        protected void debug_request() throws GLib.Error