Skip to content

Commit

Permalink
Merge pull request #662 from taclane/conv-console-fix
Browse files Browse the repository at this point in the history
Set alpha tag for conventional talkgroup and restore startup console message
  • Loading branch information
robotastic authored Apr 5, 2022
2 parents a77da4b + 0ed9b96 commit 76e5cf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trunk-recorder/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1347,16 +1347,16 @@ bool setup_convetional_channel(System *system, double frequency, long channel_in
if (system->has_channel_file()) {
Talkgroup *tg = system->find_talkgroup_by_freq(frequency);
call = new Call_conventional(tg->number, tg->freq, system, config);
call->set_talkgroup_tag(tg->alpha_tag);
} else {
call = new Call_conventional(channel_index, frequency, system, config);
BOOST_LOG_TRIVIAL(info) << "[" << system->get_short_name() << "]\tMonitoring Conventional Channel: " << format_freq(frequency) << " Talkgroup: " << channel_index;

}
BOOST_LOG_TRIVIAL(info) << "[" << system->get_short_name() << "]\tMonitoring " << system->get_system_type() << " channel: " << format_freq(frequency) << " Talkgroup: " << channel_index;
if (system->get_system_type() == "conventional") {
analog_recorder_sptr rec;
rec = source->create_conventional_recorder(tb);
rec->start(call);
call->set_is_analog(true);
call->set_is_analog(true);
call->set_recorder((Recorder *)rec.get());
call->set_state(RECORDING);
system->add_conventional_recorder(rec);
Expand Down

0 comments on commit 76e5cf5

Please sign in to comment.