|
@@ -269,15 +269,18 @@ void CGpioEntity::ToLogRootINIInfo()
|
|
|
CSimpleStringA entityName(GetEntityName());
|
|
|
if (!entityName.IsNullOrEmpty()) {
|
|
|
CSimpleStringA sectionName = CSimpleStringA::Format("Device.%s", entityName.GetData());
|
|
|
- CSimpleStringA csVendor(true), csVersion(true), csBatch(true), csPort(true), csBaudrate(true);
|
|
|
- spConfigRoot->ReadConfigValue(sectionName, "Vendor", csVendor);
|
|
|
- spConfigRoot->ReadConfigValue(sectionName, "Version", csVersion);
|
|
|
- spConfigRoot->ReadConfigValue(sectionName, "Batch", csBatch);
|
|
|
- spConfigRoot->ReadConfigValue(sectionName, "Port", csPort);
|
|
|
- spConfigRoot->ReadConfigValue(sectionName, "Baudrate", csBaudrate);
|
|
|
-
|
|
|
+ CSimpleStringA csVendor(true), csVersion(true), csBatch(true), csPort(true), csBaudrate(true), csFileName(true);
|
|
|
+ spConfigRoot->ReadConfigValue(sectionName, "File", csFileName);
|
|
|
+ if (!csFileName.IsNullOrEmpty()) {
|
|
|
+ spConfigRoot->ReadConfigValue(sectionName, "Vendor", csVendor);
|
|
|
+ spConfigRoot->ReadConfigValue(sectionName, "Version", csVersion);
|
|
|
+ spConfigRoot->ReadConfigValue(sectionName, "Batch", csBatch);
|
|
|
+ spConfigRoot->ReadConfigValue(sectionName, "Port", csPort);
|
|
|
+ spConfigRoot->ReadConfigValue(sectionName, "Baudrate", csBaudrate);
|
|
|
+ }
|
|
|
std::map<std::string, std::string> rootInfo;
|
|
|
CSimpleStringA csCheckData(true), csKeySN(true);
|
|
|
+ rootInfo["File"] = csFileName.GetData();
|
|
|
rootInfo["Vendor"] = csVendor.GetData();
|
|
|
rootInfo["Version"] = csVersion.GetData();
|
|
|
rootInfo["Batch"] = csBatch.GetData();
|