From a4de56f78f85c0c388ede0de5dd2ce672cf93f6f Mon Sep 17 00:00:00 2001 From: Lachlan Kidd Date: Fri, 1 Mar 2019 15:12:53 +1100 Subject: [PATCH] Fixed GridFlex error Fixed reg-ex for os x serial port selection --- python/samples/i2cgui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/samples/i2cgui.py b/python/samples/i2cgui.py index 792b751..a34d6c0 100644 --- a/python/samples/i2cgui.py +++ b/python/samples/i2cgui.py @@ -96,7 +96,7 @@ class Frame(wx.Frame): self.heat = {i:label("%02X" % i) for i in range(8, 112)} [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(): devgrid.Add(l) self.hot(0x44, True) @@ -154,7 +154,7 @@ class Frame(wx.Frame): def devices(self): if sys.platform == 'darwin': devdir = "/dev/" - pattern = "^tty.usbserial-(........)" + pattern = "^cu.usbserial-(.*)" else: devdir = "/dev/serial/by-id/" pattern = "^usb-FTDI_FT230X_Basic_UART_(........)-"