Skip to content

Commit

Permalink
adjust config values to double (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
taclane authored Nov 29, 2023
1 parent 4f11731 commit 2ad3656
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions trunk-recorder/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ bool load_config(string config_file, Config &config, gr::top_block_sptr &tb, std
BOOST_LOG_TRIVIAL(info) << "Broadcast Signals: " << config.broadcast_signals;
config.default_mode = data.value("defaultMode", "digital");
BOOST_LOG_TRIVIAL(info) << "Default Mode: " << config.default_mode;
config.call_timeout = data.value("callTimeout", 3);
config.call_timeout = data.value("callTimeout", 3.0);
BOOST_LOG_TRIVIAL(info) << "Call Timeout (seconds): " << config.call_timeout;
config.control_message_warn_rate = data.value("controlWarnRate", 10);
BOOST_LOG_TRIVIAL(info) << "Control channel warning rate: " << config.control_message_warn_rate;
Expand Down Expand Up @@ -293,7 +293,7 @@ bool load_config(string config_file, Config &config, gr::top_block_sptr &tb, std
bool qpsk_mod = true;
double digital_levels = element.value("digitalLevels", 1.0);
double analog_levels = element.value("analogLevels", 8.0);
double squelch_db = element.value("squelch", -160);
double squelch_db = element.value("squelch", -160.0);
int max_dev = element.value("maxDev", 4000);
double filter_width = element.value("filterWidth", 1.0);
bool conversation_mode = element.value("conversationMode", true);
Expand Down
2 changes: 1 addition & 1 deletion trunk-recorder/global_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct Config {
bool new_call_from_update;
bool debug_recorder;
int debug_recorder_port;
int call_timeout;
double call_timeout;
bool console_log;
bool log_file;
std::string log_color;
Expand Down

0 comments on commit 2ad3656

Please sign in to comment.