def hackrf_not_found():
w = QWidget()
if sys.platform == "win32":
msg = "Could not connect to HackRF. Try these solutions:" \
"<br/><br/> 1. Ensure HackRF is plugged in." \
"<br/> 2. <b>Install HackRF USB driver</b> with <a href='http://zadig.akeo.ie/'>Zadig</a>."
else:
msg = "Could not connect to HackRF. Try these solutions:" \
"<br/><br/> 1. Ensure HackRF is plugged in." \
"<br/> 2. Run the command <b>hackrf_info</b> in terminal as root." \
"<br/> 3. If 2. works for you, follow the instructions " \
"<a href='https://github.com/mossmann/hackrf/wiki/FAQ'>here</a>."
QMessageBox.critical(w, w.tr("HackRF not found"),
w.tr(msg))
评论列表
文章目录