Bluetooth stuff.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 23 Dec 2011 14:32:58 +0000 (14:32 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 23 Dec 2011 14:32:58 +0000 (14:32 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1072 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFET.py

index 9bf627c..d5e132f 100755 (executable)
@@ -58,8 +58,12 @@ class GoodFETbtser:
             print "found %d devices" % len(nearby_devices)
             for addr, name in nearby_devices:
                 print "  %s - '%s'" % (addr, name)
             print "found %d devices" % len(nearby_devices)
             for addr, name in nearby_devices:
                 print "  %s - '%s'" % (addr, name)
+                #TODO switch to wildcards.
                 if name=='FireFly-A6BD':
                     btaddr=addr;
                 if name=='FireFly-A6BD':
                     btaddr=addr;
+                if name=='RN42-A94A':
+                    btaddr=addr;
+                
             print "Please set $GOODFET to the address of your device.";
             sys.exit();
         print "Identified GoodFET at %s" % btaddr;
             print "Please set $GOODFET to the address of your device.";
             sys.exit();
         print "Identified GoodFET at %s" % btaddr;