def get_baud_rates(interface): if not hasattr(serial, "__version__") or not serial.__version__.startswith('3.'): raise RuntimeError( "Too old version of python 'serial' Library. Version 3 required.") return UART.find_sniffer_baudrates(interface)
def get_baud_rates(self, interface): return UART.find_sniffer_baudrates(interface)