Skip to content

Commit

Permalink
fixing thresholding
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Mar 9, 2024
1 parent 673bbe3 commit 98aa781
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions trunk-recorder/setup_systems.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ bool setup_conventional_channel(System *system, double frequency, long channel_i
BOOST_LOG_TRIVIAL(error) << "[" << system->get_short_name() << "]\tSquelch needs to be specified for the Source for Conventional Systems";
return false;
} else {
source->set_signal_detector_threshold(system->get_squelch_db());
channel_added = true;
}

Expand All @@ -33,7 +32,7 @@ bool setup_conventional_channel(System *system, double frequency, long channel_i
} else {
call = new Call_conventional(channel_index, frequency, system, config, system->get_squelch_db(), true); // signal detection is always true when a channel file is not used
}

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;
Expand Down
2 changes: 1 addition & 1 deletion trunk-recorder/source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ void Source::enable_detected_recorders() {
}

void Source::set_signal_detector_threshold(float threshold) {
BOOST_LOG_TRIVIAL(info) << " - Setting Signal Detector Threshold to: " << threshold;
BOOST_LOG_TRIVIAL(info) << " - Setting Signal Detector Threshold to: " << threshold;
signal_detector->set_threshold(threshold);
}

Expand Down

0 comments on commit 98aa781

Please sign in to comment.