Fixed GridFlex error
Fixed reg-ex for os x serial port selection
This commit is contained in:
parent
2831dba645
commit
a4de56f78f
|
@ -96,7 +96,7 @@ class Frame(wx.Frame):
|
||||||
|
|
||||||
self.heat = {i:label("%02X" % i) for i in range(8, 112)}
|
self.heat = {i:label("%02X" % i) for i in range(8, 112)}
|
||||||
[self.hot(i, False) for i in self.heat]
|
[self.hot(i, False) for i in self.heat]
|
||||||
devgrid = wx.GridSizer(14, 8)
|
devgrid = wx.GridSizer(8, 14, 8)
|
||||||
for i,l in self.heat.items():
|
for i,l in self.heat.items():
|
||||||
devgrid.Add(l)
|
devgrid.Add(l)
|
||||||
self.hot(0x44, True)
|
self.hot(0x44, True)
|
||||||
|
@ -154,7 +154,7 @@ class Frame(wx.Frame):
|
||||||
def devices(self):
|
def devices(self):
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
devdir = "/dev/"
|
devdir = "/dev/"
|
||||||
pattern = "^tty.usbserial-(........)"
|
pattern = "^cu.usbserial-(.*)"
|
||||||
else:
|
else:
|
||||||
devdir = "/dev/serial/by-id/"
|
devdir = "/dev/serial/by-id/"
|
||||||
pattern = "^usb-FTDI_FT230X_Basic_UART_(........)-"
|
pattern = "^usb-FTDI_FT230X_Basic_UART_(........)-"
|
||||||
|
|
Loading…
Reference in New Issue