Small improvements on dbus testing program
authorjaviplx <javiplx@gmail.com>
Sun, 17 Oct 2010 09:06:09 +0000 (09:06 +0000)
committerjaviplx <javiplx@gmail.com>
Sun, 17 Oct 2010 09:06:09 +0000 (09:06 +0000)
git-svn-id: file:///svnroot/wifihood/trunk@64 c51dfc6a-5949-4919-9c8e-f207a149c383

wifiscand/do_dbus

index 05ba495..a05f4c1 100755 (executable)
@@ -11,8 +11,8 @@ proxy = bus.get_object( object_name , object_path )
 
 proxy.wakeup()
 
-fps = {}
 if proxy.start() == "Interface initialized" :
+    fps = {}
 
     scan = proxy.scan()
     if scan :
@@ -21,7 +21,9 @@ if proxy.start() == "Interface initialized" :
             rssi = int( items.pop() )
             if rssi != -256 :
                 fps["".join(items)] = rssi
-print fps
+    print len(fps),fps
+else :
+    print "Interface initialization failed"
 
 proxy.stop()