Bit of a hack to get the index of the device so the device path can be taken straight from the serial device object rather than via some string splitting which was causing errors on Rico's machine. Not sure if there's a better way to do this since the OptionMenuStyle element doesn't store the selected item index internally (I think).
Bit of a hack to get the index of the device so the device path can be taken straight from the serial device object rather than via some string splitting which was causing errors on Rico's machine. Not sure if there's a better way to do this since the OptionMenuStyle element doesn't store the selected item index internally (I think).