Removed some debugging prints and test code
authorEnrico Zini <enrico@enricozini.org>
Thu, 13 Aug 2009 13:32:45 +0000 (14:32 +0100)
committerEnrico Zini <enrico@enricozini.org>
Thu, 13 Aug 2009 13:32:48 +0000 (14:32 +0100)
src/app.vala
src/gps.vala

index a6b143990cf642cc98d5386296c95b389eef282b..16ab25239a47b5b44b8498fd0936e9ee86b7ec2a 100644 (file)
@@ -241,9 +241,7 @@ public class Menu : Applet
 
        public void add_applet(string target)
        {
-stderr.printf("menu.add_applet.packpre me %s them %s\n", _label, target);
                pack_start(new AppletPushLink(target), false, false, 0);
-stderr.printf("menu.add_applet.packpost me %s them %s\n", _label, target);
        }
 
        public void add_service_toggle(string service_name, string label_start, string label_stop)
index 1c3cc25d5fcfbab7121e4bc84ef7705f3e9a46c6..3b455f0d5ff90fd01e27e7b3b7477c6003f14a35 100644 (file)
@@ -127,9 +127,7 @@ public class Monitor : zavai.Service
                zavai.log.info("SETSIG2");
          */
 
-               zavai.log.info("DEBUG1");
-               ubx.DebugPacket += on_ubxdebug_packet;
-               zavai.log.info("DEBUG2");
+               //ubx.DebugPacket += on_ubxdebug_packet;
 
 /*
                // This piece of machinery is taken from Zhone
@@ -206,6 +204,7 @@ public class Monitor : zavai.Service
        }
        */
 
+    /*
        protected void on_ubxdebug_packet(dynamic DBus.Object ubx, string clid, int length,
                        HashTable<string, Value?>[] data)
        {
@@ -216,29 +215,28 @@ public class Monitor : zavai.Service
                message("ZAZA %p", data[0]);
                message("ZAZA %p", data[1]);
                message("ZAZA %p", data[2]);
-        /*
-        */
-               /*
+               / *
                message("ZAZA %u", data[0].size());
                foreach (string k in data[0].get_keys())
                        message("ZAZA %s", k);
-               */
+               * /
                //PtrArray< HashTable<string, Value?> >* prova = (PtrArray< HashTable<string, Value?> >)data;
                //message("ZAZA %u", prova->len);
-               /*
+               / *
                foreach (string k in prova[0].get_keys())
                        message("ZAZA %s", k);
-                       */
-               /*
+                       * /
+               / *
                for (int i = 0; data[i] != null; ++i)
                {
                        zavai.log.info("ZAZA");
                }
-               */
+               * /
                //message("Size: %d", data.size());
 //         self.notify("satellites", clid, length, data)
         //sat_info(data);
        }
+    */
 
        protected override void start()
        {
@@ -268,13 +266,15 @@ public class Monitor : zavai.Service
 //         self.gps.bus.remove_signal_receiver(
 //             self.on_satellites_changed, 'SatellitesChanged', 'org.freedesktop.Gypsy.Satellite',
 //             'org.freesmartphone.ogpsd', '/org/freedesktop/Gypsy')
+        /*
                try {
                        ubx.SetDebugFilter("NAV-STATUS", false);
                        ubx.SetDebugFilter("NAV-SVINFO", false);
                } catch (GLib.Error e) {
                        zavai.log.error(e.message);
                }
-               ubx.DebugPacket -= on_ubxdebug_packet;
+        */
+               //ubx.DebugPacket -= on_ubxdebug_packet;
                //ubx.DebugPacket -= prova;
                gps.release("gps.monitor");
                base.stop();