mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Ref T723 [xswiftbus] Expose configuration to enable/disable TCAS traffic
This commit is contained in:
@@ -60,6 +60,7 @@ namespace XSwiftBus
|
||||
else if (stringCompareCaseInsensitive(key, "dbusAddress")) { valid = parseDBusAddress(value); }
|
||||
else if (stringCompareCaseInsensitive(key, "dbusPort")) { valid = parseDBusPort(value); }
|
||||
else if (stringCompareCaseInsensitive(key, "debug")) { valid = parseDebug(value); }
|
||||
else if (stringCompareCaseInsensitive(key, "tcasTraffic")) { valid = parseTcas(value); }
|
||||
else
|
||||
{
|
||||
WARNING_LOG("xswiftbus.conf line " + std::to_string(lineNo) + ": Unknown variable " + value + "!");
|
||||
@@ -129,6 +130,12 @@ namespace XSwiftBus
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CConfig::parseTcas(const std::string &value)
|
||||
{
|
||||
m_tcas = stringCompareCaseInsensitive(value, "on");
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string CConfig::dbusModeToString(DBusMode mode)
|
||||
{
|
||||
switch (mode)
|
||||
|
||||
Reference in New Issue
Block a user