|
@@ -167,16 +167,14 @@ void CGpioEntity::ToLogRootINIInfo()
|
|
|
spConfigRoot->ReadConfigValue(sectionName.GetData(), "Baudrate", csBaudrate);
|
|
|
|
|
|
std::map<std::string, std::string> rootInfo;
|
|
|
- CSimpleStringA csPortNum(true), csCheckData(true), csKeySN(true), csInOutDir(true);
|
|
|
+ CSimpleStringA csPortNum(true), csCheckData(true), csKeySN(true);
|
|
|
rootInfo["Vendor"] = csVendor;
|
|
|
rootInfo["Version"] = csVersion;
|
|
|
rootInfo["Batch"] = csBatch;
|
|
|
rootInfo["Port"] = csPort;
|
|
|
rootInfo["Baudrate"] = csBaudrate;
|
|
|
spConfigRoot->ReadConfigValue(sectionName.GetData(), "PortNum", csPortNum);
|
|
|
- spConfigRoot->ReadConfigValue(sectionName.GetData(), "InOutDir", csInOutDir);
|
|
|
rootInfo["PortNum"] = csPortNum;
|
|
|
- rootInfo["InOutDir"] = csInOutDir;
|
|
|
|
|
|
std::pair<bool, std::string> strResult;
|
|
|
strResult = generateJsonStr(rootInfo);
|
|
@@ -278,8 +276,6 @@ void CGpioEntity::ToLogWarnInfoAboutTerm(const AdapterInfo& m_adapterInfo)
|
|
|
termInfo["Port"] = m_port;
|
|
|
termInfo["PortNum"] = m_portNum;
|
|
|
termInfo["Baudrate"] = m_Baudrate;
|
|
|
- termInfo["InOutDir"] = m_InOutDir;
|
|
|
-
|
|
|
if (strFileHash != nullptr) {
|
|
|
delete[] strFileHash;
|
|
|
strFileHash = nullptr;
|
|
@@ -343,17 +339,12 @@ ErrorCodeEnum CGpioEntity::Initial()
|
|
|
int initTries = 0;
|
|
|
do {
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("to open device.");
|
|
|
- int portNum, inOutDir, port, baudRate;
|
|
|
+ int portNum, port, baudRate;
|
|
|
err = spConfig->ReadConfigValueInt("Device.Gpio", "PortNum", portNum);
|
|
|
if (err == Error_Succeed)
|
|
|
m_dwPortNum = portNum;
|
|
|
else
|
|
|
return Error_IO;
|
|
|
- err = spConfig->ReadConfigValueInt("Device.Gpio", "InOutDir", inOutDir);
|
|
|
- if (err == Error_Succeed)
|
|
|
- m_dwInOutDir = inOutDir;
|
|
|
- else
|
|
|
- return Error_IO;
|
|
|
spConfig->ReadConfigValueInt("Device.Gpio", "Port", port);
|
|
|
spConfig->ReadConfigValueInt("Device.Gpio", "BaudRate", baudRate);
|
|
|
|
|
@@ -361,7 +352,6 @@ ErrorCodeEnum CGpioEntity::Initial()
|
|
|
m_port = CSimpleStringA::Format("%d", port);
|
|
|
m_Baudrate = CSimpleStringA::Format("%d", baudRate);
|
|
|
m_portNum = CSimpleStringA::Format("%d", portNum);
|
|
|
- m_InOutDir = CSimpleStringA::Format("%d", inOutDir);
|
|
|
GpioInitParam initParam;
|
|
|
if (!m_bNewVersion) {
|
|
|
initParam.dwPortNum = 3;
|