Skip to content

Commit

Permalink
load channelFile items into system channels vector (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
taclane authored Nov 14, 2023
1 parent 81479af commit 7d629d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trunk-recorder/systems/system_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ void System_impl::set_channel_file(std::string channel_file) {
BOOST_LOG_TRIVIAL(info) << "Loading Talkgroups...";
this->channel_file = channel_file;
this->talkgroups->load_channels(sys_num, channel_file);
for (auto& tg : this->get_talkgroups()) {
this->add_channel(tg->freq);
}
}

bool System_impl::has_channel_file() {
Expand Down

0 comments on commit 7d629d3

Please sign in to comment.