Hi, I'm getting weirdness trying to count the HackRFs:

#include <stdio.h>
#include <libhackrf/hackrf.h>

int main ( )
  {
  hackrf_init() ;
  hackrf_device_list_t* hrfl ;
  hrfl = hackrf_device_list() ;
  printf ( "Found %i HackRF(s).\n", hrfl->usb_devicecount ) ;
  return 0 ;
  }

If I run this on MacOS 10.10 I get:

  Found 8 HackRF(s).

But on Linux Mint I get:

  Found 7 HackRF(s).

In both cases this is with nothing plugged in.

Is the hrfl->usb_devicecount *all* the USB devices, not just the HackRFs?

If so, how do I iterate just the HackRFs?

Thanks.

Bill


-- 
Red to red, black to black, switch it on, but stand well back.

_______________________________________________
HackRF-dev mailing list
[email protected]
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev

Reply via email to