From 7a551ddf04e16e44827fd743af65ef2cca2a1be2 Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Fri, 29 Jul 2022 23:08:25 +0200 Subject: [PATCH] Show whitelist on start --- .vscode/settings.json | 3 ++- DMRControl.cpp | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3637c2e..a0af545 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,7 @@ { "files.associations": { "fstream": "cpp", - "cstring": "cpp" + "cstring": "cpp", + "string": "cpp" } } \ No newline at end of file diff --git a/DMRControl.cpp b/DMRControl.cpp index ae2f7c4..afe51fb 100644 --- a/DMRControl.cpp +++ b/DMRControl.cpp @@ -38,6 +38,11 @@ m_lookup(lookup) // Load black and white lists to DMRAccessControl CDMRAccessControl::init(blacklist, whitelist, slot1TGWhitelist, slot2TGWhitelist, selfOnly, prefixes, id); + //Print whitelisted IDs + LogMessage("Allowed radio ids: "); + for (unsigned int i: whitelist) + LogMessage((char*)i); + CDMRSlot::init(colorCode, embeddedLCOnly, dumpTAData, callHang, modem, network, display, duplex, m_lookup, rssi, jitter, ovcm); }