From 7d8cc17a707fc60a3367b6b76cf48ea39459f97d Mon Sep 17 00:00:00 2001 From: Tom Early Date: Wed, 3 Apr 2019 15:42:01 -0700 Subject: [PATCH] allow empty link at startup --- QnetLink.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QnetLink.cpp b/QnetLink.cpp index 2c9d453..cf75aa5 100644 --- a/QnetLink.cpp +++ b/QnetLink.cpp @@ -416,9 +416,9 @@ bool CQnetLink::load_gwys(const std::string &filename) fprintf(stderr, "DPlus Authorization completed!\n"); } - for (auto it=gwy_list.begin(); it!=gwy_list.end(); it++) - printf("%s %s\n", it->first.c_str(), it->second.c_str()); - printf("Added %d gateways\n", (int)gwy_list.size()); + //for (auto it=gwy_list.begin(); it!=gwy_list.end(); it++) + // printf("%s %s\n", it->first.c_str(), it->second.c_str()); + printf("Added %d gateways from gwys.txt\n", (int)gwy_list.size()); return true; } @@ -537,7 +537,7 @@ bool CQnetLink::read_config(const char *cfgFile) modules++; cfg.GetValue(key+"_inactivity", modem_type, rf_inactivity_timer[i], 0, 300); rf_inactivity_timer[i] *= 60; - cfg.GetValue(key+"_link_at_start", modem_type, link_at_startup[i], 8, 8); + cfg.GetValue(key+"_link_at_start", modem_type, link_at_startup[i], 0, 8); } } if (0 == modules) {