Commit 80fbfacf authored by Pavel Vainerman's avatar Pavel Vainerman

(IOControl): сделал в функции :setValue попытку сохранить как (DO)

в случае NotFound для AO
parent b91eda75
......@@ -8,7 +8,7 @@
Name: libuniset
Version: 1.7
Release: alt10
Release: alt11
Summary: UniSet - library for building distributed industrial control systems
......@@ -335,6 +335,9 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
* Thu Apr 24 2014 Pavel Vainerman <pv@server> 1.7-alt11
- minor fixes IOControl::setValue
* Tue Apr 01 2014 Pavel Vainerman <pv@altlinux.ru> 1.7-alt10
- add new vtype: F2r, I2r, U2r (reverse data order)
......
......@@ -469,8 +469,16 @@ void IOController::setValue( const IOController_i::SensorInfo& si, CORBA::Long v
if( sup_id == UniSetTypes::DefaultObjectId )
sup_id = getId();
IOController::AIOStateList::iterator li(aioList.end());
localSetValue(li,si,value,sup_id);
try
{
IOController::AIOStateList::iterator li(aioList.end());
localSetValue(li,si,value,sup_id);
} // getValue if not found...
catch( IOController_i::NameNotFound )
{
IOController::DIOStateList::iterator li(dioList.end());
localSetState(li, si, (value ? true : false), sup_id);
}
}
void IOController::fastSetValue( const IOController_i::SensorInfo& si, CORBA::Long value, UniSetTypes::ObjectId sup_id )
......
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