From 10fe14ab729cd146c7db93ac4ffbcb8d81c0c476 Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Fri, 29 Jul 2022 23:23:49 +0200 Subject: [PATCH] Fix whitelist output --- .vscode/settings.json | 75 ++++++++++++++++++++++++++++++++++++++++++- DMRControl.cpp | 6 ++-- 2 files changed, 78 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index a0af545..6e78503 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,79 @@ "files.associations": { "fstream": "cpp", "cstring": "cpp", - "string": "cpp" + "string": "cpp", + "cctype": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "cstdarg": "cpp", + "cstddef": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "any": "cpp", + "array": "cpp", + "atomic": "cpp", + "hash_map": "cpp", + "strstream": "cpp", + "bit": "cpp", + "*.tcc": "cpp", + "bitset": "cpp", + "cfenv": "cpp", + "chrono": "cpp", + "codecvt": "cpp", + "compare": "cpp", + "complex": "cpp", + "concepts": "cpp", + "condition_variable": "cpp", + "cstdint": "cpp", + "deque": "cpp", + "forward_list": "cpp", + "list": "cpp", + "map": "cpp", + "set": "cpp", + "unordered_map": "cpp", + "unordered_set": "cpp", + "vector": "cpp", + "exception": "cpp", + "algorithm": "cpp", + "functional": "cpp", + "iterator": "cpp", + "memory": "cpp", + "memory_resource": "cpp", + "numeric": "cpp", + "optional": "cpp", + "random": "cpp", + "ratio": "cpp", + "source_location": "cpp", + "string_view": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "utility": "cpp", + "future": "cpp", + "initializer_list": "cpp", + "iomanip": "cpp", + "iosfwd": "cpp", + "iostream": "cpp", + "istream": "cpp", + "limits": "cpp", + "mutex": "cpp", + "new": "cpp", + "numbers": "cpp", + "ostream": "cpp", + "semaphore": "cpp", + "shared_mutex": "cpp", + "sstream": "cpp", + "stdexcept": "cpp", + "stop_token": "cpp", + "streambuf": "cpp", + "thread": "cpp", + "cinttypes": "cpp", + "typeindex": "cpp", + "typeinfo": "cpp", + "valarray": "cpp", + "variant": "cpp" } } \ No newline at end of file diff --git a/DMRControl.cpp b/DMRControl.cpp index afe51fb..b063999 100644 --- a/DMRControl.cpp +++ b/DMRControl.cpp @@ -40,8 +40,10 @@ m_lookup(lookup) //Print whitelisted IDs LogMessage("Allowed radio ids: "); - for (unsigned int i: whitelist) - LogMessage((char*)i); + for (unsigned int i: whitelist) { + std::string id_name = std::to_string(i); + LogMessage(id_name.c_str()); + } CDMRSlot::init(colorCode, embeddedLCOnly, dumpTAData, callHang, modem, network, display, duplex, m_lookup, rssi, jitter, ovcm); }