Closed zuckschwerdt closed 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
Good idea. They all return RTLSDRTUNER..., what do you think of return "RTLSDR_TUNER_R820T"; vs return "R820T"; for all of the switch cases?
return "RTLSDR_TUNER_R820T";
return "R820T";
Even better! I've upated the PR.
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