Commit c4f534d1 authored by Pasha's avatar Pasha

MBTCPMaster ( MTR)

parent 379392d0
...@@ -1175,11 +1175,9 @@ bool MBTCPMaster::initRegInfo( RegInfo* r, UniXML_iterator& it, MBTCPMaster::RT ...@@ -1175,11 +1175,9 @@ bool MBTCPMaster::initRegInfo( RegInfo* r, UniXML_iterator& it, MBTCPMaster::RT
r->offset = it.getIntProp("tcp_mboffset"); r->offset = it.getIntProp("tcp_mboffset");
r->mb_init = it.getIntProp("tcp_mbinit"); r->mb_init = it.getIntProp("tcp_mbinit");
if( dev->dtype != MBTCPMaster::dtRTU ) if( dev->dtype == MBTCPMaster::dtRTU )
{ {
dlog[Debug::CRIT] << myname << "(initRegInfo): Unknown mbtype='" << dev->dtype // dlog[Debug::INFO] << myname << "(initRegInfo): init RTU.."
<< "' for " << it.getProp("name") << endl;
return false;
} }
else if( dev->dtype == MBTCPMaster::dtMTR ) else if( dev->dtype == MBTCPMaster::dtMTR )
{ {
...@@ -1187,7 +1185,12 @@ bool MBTCPMaster::initRegInfo( RegInfo* r, UniXML_iterator& it, MBTCPMaster::RT ...@@ -1187,7 +1185,12 @@ bool MBTCPMaster::initRegInfo( RegInfo* r, UniXML_iterator& it, MBTCPMaster::RT
if( !initMTRitem(it,r) ) if( !initMTRitem(it,r) )
return false; return false;
} }
else
{
dlog[Debug::CRIT] << myname << "(initRegInfo): Unknown mbtype='" << dev->dtype
<< "' for " << it.getProp("name") << endl;
return false;
}
if( mbregFromID ) if( mbregFromID )
{ {
......
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