Skip to content

Commit

Permalink
Trigger programdataHandler on channel change
Browse files Browse the repository at this point in the history
  • Loading branch information
athoik committed Apr 13, 2020
1 parent 11cb6f2 commit f9608a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdgradio/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ int main(int argc, char **argv)
run.store(false);
}

programdataHandler(&ad, nullptr);
dabReset_msc(theRadio);
set_audioChannel (theRadio, &ad);

Expand Down Expand Up @@ -744,6 +745,7 @@ void selectNext(void)
sighandler(9);
}

programdataHandler(&ad, nullptr);
dabReset_msc(theRadio);
set_audioChannel(theRadio, &ad);

Expand Down Expand Up @@ -781,6 +783,7 @@ void listener(void)
}
fprintf(stderr, "{\"ps\":\"%s\"}\n", programName.c_str());

programdataHandler(&ad, nullptr);
dabReset_msc(theRadio);
set_audioChannel(theRadio, &ad);
}
Expand Down

0 comments on commit f9608a5

Please sign in to comment.