[text] Auto-RX WSL

Viewer

copyrawdownloadembedprintName: Auto-RX WSL
  1.     # First, check which platform is present.
  2.     if 'Microsoft' in platform.uname()[2]:
  3.         logging.info("WSL Detected - Assume RTLSDR is present!")
  4.         return True
  5.  
  6.     # First, check if the RTLSDR with a provided serial number is present.
  7.     if device_idx == "0":
  8.         # Check for the presence of any RTLSDRs.
  9.         _rtl_exists = find_rtlsdr(device_idx)
  10.  
  11.     if not _rtl_exists:
  12.         logging.error(
  13.             "RTLSDR - RTLSDR with serial #%s is not present!" % str(device_idx)
  14.         )
  15.         return False

Editor

You can edit this paste and save as new:


File Description
  • Auto-RX WSL
  • Paste Code
  • 25 Feb-2021
  • 543 Bytes
You can Share it: