Radio: Abort, if no RX sink is specified

This commit is contained in:
Andreas Eversberg 2018-08-25 10:22:55 +02:00
parent 881d4a9f72
commit b2210cd698
1 changed files with 4 additions and 0 deletions

View File

@ -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");
goto error;
} 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 */