forked from sdr/rtl-sdr
1
0
Fork 0

return RTLSDR_TUNER_UNKNOWN (0) on failure of rtlsdr_get_tuner_type

This commit is contained in:
Dimitri Stolnikov 2012-08-02 19:32:40 +02:00
parent 4e2a0ea0c4
commit 88cd4b33cf
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ enum rtlsdr_tuner {
* Get the tuner type.
*
* \param dev the device handle given by rtlsdr_open()
* \return <= 0 on error, tuner type otherwise
* \return RTLSDR_TUNER_UNKNOWN on error, tuner type otherwise
*/
RTLSDR_API enum rtlsdr_tuner rtlsdr_get_tuner_type(rtlsdr_dev_t *dev);

View File

@ -695,7 +695,7 @@ int rtlsdr_get_freq_correction(rtlsdr_dev_t *dev)
enum rtlsdr_tuner rtlsdr_get_tuner_type(rtlsdr_dev_t *dev)
{
if (!dev)
return -1;
return RTLSDR_TUNER_UNKNOWN;
return dev->tuner_type;
}