Commit b5a41cc6 authored by Pavel Vainerman's avatar Pavel Vainerman

(IOControl): исправил ошибку в поиске узла с настройками.

parent da0291f7
...@@ -328,6 +328,7 @@ void IOControl::execute() ...@@ -328,6 +328,7 @@ void IOControl::execute()
{ {
try try
{ {
if( !noCards ) if( !noCards )
{ {
check_testmode(); check_testmode();
...@@ -443,6 +444,8 @@ void IOControl::iopoll() ...@@ -443,6 +444,8 @@ void IOControl::iopoll()
// -------------------------------------------------------------------------------- // --------------------------------------------------------------------------------
void IOControl::ioread( IOInfo* it ) void IOControl::ioread( IOInfo* it )
{ {
// cout << conf->oind->getMapName(it->si.id) << " ignore=" << it->ignore << " ncard=" << it->ncard << endl;
if( it->ignore || it->ncard == defCardNum ) if( it->ignore || it->ncard == defCardNum )
return; return;
...@@ -1588,10 +1591,13 @@ void IOControl::buildCardsList() ...@@ -1588,10 +1591,13 @@ void IOControl::buildCardsList()
return; return;
} }
xmlNode* cnode = xml->findNode(mynode,"iocards",""); //xmlNode* cnode = xml->findNode(mynode,"iocards","");
//xmlNode* extFindNode(xmlNode* node, int depth, int width, const std::string searchnode, const std::string name = "", bool top=true );
xmlNode* cnode = xml->extFindNode(mynode,1,1,"iocards","");
if( !cnode ) if( !cnode )
{ {
unideb[Debug::WARN] << myname << "(buildCardsList): <iocards> not found.." << endl; unideb[Debug::WARN] << myname << "(buildCardsList): Not found <iocards> for node=" << conf->getLocalNodeName() << "(" << conf->getLocalNode() << ")" << endl;
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment