pothosware / SoapyRTLSDR

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

Change getHardwareKey to return the actual tuner type #34

Closed zuckschwerdt closed 5 years ago

zuckschwerdt commented 5 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 5 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 5 years ago

Even better! I've upated the PR.