def print_versions( device = None ): print( "libbladeRF version: " + str(_bladerf.version()) ) if( device != None ): try: print( "Firmware version: " + str(device.get_fw_version()) ) except: print( "Firmware version: " + "ERROR" ) raise try: print( "FPGA version: " + str(device.get_fpga_version()) ) except: print( "FPGA version: " + "ERROR" ) raise return 0
def print_versions(device=None): print("libbladeRF version: " + str(_bladerf.version())) if (device != None): try: print("Firmware version: " + str(device.get_fw_version())) except: print("Firmware version: " + "ERROR") raise try: print("FPGA version: " + str(device.get_fpga_version())) except: print("FPGA version: " + "ERROR") raise return 0
def cmd_version(**kwargs): print("libbladeRF version: ", _bladerf.version()) print("bladerf-tool version: ", "v" + __version__)