mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Convert the D-Star module to upper case.
This commit is contained in:
7
Conf.cpp
7
Conf.cpp
@@ -238,9 +238,12 @@ bool CConf::read()
|
||||
} else if (section == SECTION_DSTAR) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_dstarEnabled = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Module") == 0)
|
||||
else if (::strcmp(key, "Module") == 0) {
|
||||
// Convert the module to upper case
|
||||
for (unsigned int i = 0U; value[i] != 0; i++)
|
||||
value[i] = ::toupper(value[i]);
|
||||
m_dstarModule = value;
|
||||
else if (::strcmp(key, "SelfOnly") == 0)
|
||||
} else if (::strcmp(key, "SelfOnly") == 0)
|
||||
m_dstarSelfOnly = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "BlackList") == 0) {
|
||||
char* p = ::strtok(value, ",\r\n");
|
||||
|
||||
Reference in New Issue
Block a user