mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-02-28 18:04:09 +01:00
lib: add missing 'goto' in tuner detection code
Add missing ‘goto’ to avoid checks for other tuners when R828D tuner is found. Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
bf92121aff
commit
2c171630fa
@ -1503,6 +1503,7 @@ int rtlsdr_open(rtlsdr_dev_t **out_dev, uint32_t index)
|
|||||||
if (reg == R82XX_CHECK_VAL) {
|
if (reg == R82XX_CHECK_VAL) {
|
||||||
fprintf(stderr, "Found Rafael Micro R828D tuner\n");
|
fprintf(stderr, "Found Rafael Micro R828D tuner\n");
|
||||||
dev->tuner_type = RTLSDR_TUNER_R828D;
|
dev->tuner_type = RTLSDR_TUNER_R828D;
|
||||||
|
goto found;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialise GPIOs */
|
/* initialise GPIOs */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user