git-svn-id: svn://db.shs.com.ru/libs@133 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
2016-11-07 13:37:42 +00:00
parent 8bbb661966
commit fa98165775
6 changed files with 5 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ public:
#pragma pack (pop)
__KPi(const PIString & config, const PIString & name, bool _pult = false): PIProtocol(config, name, &from_k, 2, &(from_k.count), sizeof(from_k) - 2, &to_k, sizeof(to_k)) {
PIConfig conf(config, PIIODevice::ReadOnly);
PIConfig::Entry ce = conf.getValue(name);--
PIConfig::Entry ce = conf.getValue(name);
to_k.type = from_k.type = ce.getValue("type", 0xA);
to_k.addr_to = ce.getValue("addr_k", 0x15);
from_k.addr_to = ce.getValue("addr_pult", 0x75);