Radio: Abort, if no RX sink is specified
This commit is contained in:
parent
881d4a9f72
commit
b2210cd698
|
@ -177,6 +177,10 @@ int radio_init(radio_t *radio, int latspl, int samplerate, const char *tx_wave_f
|
||||||
PDEBUG(DRADIO, DEBUG_ERROR, "No sound card support compiled in!\n");
|
PDEBUG(DRADIO, DEBUG_ERROR, "No sound card support compiled in!\n");
|
||||||
goto error;
|
goto error;
|
||||||
#endif
|
#endif
|
||||||
|
} else {
|
||||||
|
rc = -ENOTSUP;
|
||||||
|
PDEBUG(DRADIO, DEBUG_ERROR, "No RX audio sink is selected, try \"--audio-device default\"!\n");
|
||||||
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check if sample rate is too low */
|
/* check if sample rate is too low */
|
||||||
|
|
Loading…
Reference in New Issue