Commit 047e83ba authored by D1plo1d's avatar D1plo1d

Removing bluetooth serial devices from the default connections because...

Removing bluetooth serial devices from the default connections because bluetooth serial ports persist on OSX and get in the way of connecting to real printers (very few, if any of which are bluetooth).
parent 9c55957e
......@@ -461,7 +461,12 @@ class pronsole(cmd.Cmd):
except:
pass
return baselist+glob.glob('/dev/ttyUSB*') + glob.glob('/dev/ttyACM*') +glob.glob("/dev/tty.*")+glob.glob("/dev/cu.*")+glob.glob("/dev/rfcomm*")
for g in ['/dev/ttyUSB*', '/dev/ttyACM*', "/dev/tty.*", "/dev/cu.*", "/dev/rfcomm*"]:
baselist+=glob.glob(g)
return filter(self._bluetoothSerialFilter, baselist)
def _bluetoothSerialFilter(self, serial):
return not ("Bluetooth" in serial or "FireFly" in serial)
def online(self):
self.log("\rPrinter is now online")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment