Don't start receiver when Enable RDS is checked

This commit is contained in:
Clayton Smith 2020-11-28 16:54:39 -05:00
parent a86ec4640a
commit 677d83324e
2 changed files with 21 additions and 6 deletions

View File

@ -2,6 +2,7 @@
2.14.2: In progress...
FIXED: Handle invalid device strings gracefully.
FIXED: Receiver starts unexpectedly when "Enable RDS" is checked.
2.14.1: Released November 27, 2020

View File

@ -1380,16 +1380,30 @@ void receiver::get_rds_data(std::string &outbuff, int &num)
void receiver::start_rds_decoder(void)
{
stop();
rx->start_rds_decoder();
start();
if (d_running)
{
stop();
rx->start_rds_decoder();
start();
}
else
{
rx->start_rds_decoder();
}
}
void receiver::stop_rds_decoder(void)
{
stop();
rx->stop_rds_decoder();
start();
if (d_running)
{
stop();
rx->stop_rds_decoder();
start();
}
else
{
rx->stop_rds_decoder();
}
}
bool receiver::is_rds_decoder_active(void) const