pothosware / SoapyRTLSDR

SoapySDR RTL-SDR Support Module
https://github.com/pothosware/SoapyRTLSDR/wiki
MIT License
134 stars 31 forks source link

Change getHardwareKey to return the actual tuner type #34

Closed zuckschwerdt closed 6 years ago

zuckschwerdt commented 6 years ago

Changes the getHardwareKey() return string from "RTLSDR" to the actual tuner type by rtlsdr_get_tuner_type(). This seems the closest we can get to report a "hardware". S.a. the enum at https://github.com/osmocom/rtl-sdr/blob/master/include/rtl-sdr.h#L172

guruofquality commented 6 years ago

Good idea. They all return RTLSDRTUNER..., what do you think of return "RTLSDR_TUNER_R820T"; vs return "R820T"; for all of the switch cases?

zuckschwerdt commented 6 years ago

Even better! I've upated the PR.