Commit 708a2f99 authored by Pavel Vainerman's avatar Pavel Vainerman

(LogicProcessor): исправил баг с определением iotype датчика

parent 3e23eb68
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Name: libuniset Name: libuniset
Version: 1.0 Version: 1.0
Release: alt59 Release: alt60
Summary: UniSet - library for building distributed industrial control systems Summary: UniSet - library for building distributed industrial control systems
License: GPL License: GPL
Group: Development/C++ Group: Development/C++
...@@ -213,6 +213,9 @@ rm -f %buildroot%_libdir/*.la ...@@ -213,6 +213,9 @@ rm -f %buildroot%_libdir/*.la
%changelog %changelog
* Wed Dec 21 2011 Pavel Vainerman <pv@altlinux.ru> 1.0-alt60
- fixed bug in LogicProcessor
* Mon Dec 19 2011 Pavel Vainerman <pv@altlinux.ru> 1.0-alt59 * Mon Dec 19 2011 Pavel Vainerman <pv@altlinux.ru> 1.0-alt59
- add precision for output variables - add precision for output variables
......
...@@ -90,7 +90,7 @@ void PassiveLProcessor::sysCommand( UniSetTypes::SystemMessage *sm ) ...@@ -90,7 +90,7 @@ void PassiveLProcessor::sysCommand( UniSetTypes::SystemMessage *sm )
{ {
if( !shm->waitSMready(10000) ) if( !shm->waitSMready(10000) )
{ {
cerr << "(ERR): SM not ready. Terminated... " << endl; dlog[Debug::CRIT] << "(ERR): SM not ready. Terminated... " << endl;
raise(SIGTERM); raise(SIGTERM);
return; return;
} }
...@@ -163,17 +163,17 @@ void PassiveLProcessor::setOuts() ...@@ -163,17 +163,17 @@ void PassiveLProcessor::setOuts()
break; break;
default: default:
cerr << "(LProcessor::setOuts): неподдерживаемый тип iotype=" << it->iotype << endl; dlog[Debug::CRIT] << "(LProcessor::setOuts): неподдерживаемый тип iotype=" << it->iotype << endl;
break; break;
} }
} }
catch( Exception& ex ) catch( Exception& ex )
{ {
cerr << "(LProcessor::setOuts): " << ex << endl; dlog[Debug::CRIT] << "(LProcessor::setOuts): " << ex << endl;
} }
catch(...) catch(...)
{ {
cerr << "(LProcessor::setOuts): catch...\n"; dlog[Debug::CRIT] << "(LProcessor::setOuts): catch...\n";
} }
} }
} }
...@@ -195,17 +195,17 @@ void PassiveLProcessor::sigterm( int signo ) ...@@ -195,17 +195,17 @@ void PassiveLProcessor::sigterm( int signo )
break; break;
default: default:
cerr << "(LProcessor::sigterm): неподдерживаемый тип iotype=" << it->iotype << endl; dlog[Debug::CRIT] << "(LProcessor::sigterm): неподдерживаемый тип iotype=" << it->iotype << endl;
break; break;
} }
} }
catch( Exception& ex ) catch( Exception& ex )
{ {
cerr << "(LProcessor::sigterm): " << ex << endl; dlog[Debug::CRIT] << "(LProcessor::sigterm): " << ex << endl;
} }
catch(...) catch(...)
{ {
cerr << "(LProcessor::sigterm): catch...\n"; dlog[Debug::CRIT] << "(LProcessor::sigterm): catch...\n";
} }
} }
} }
...@@ -243,7 +243,7 @@ void PassiveLProcessor::processingMessage( UniSetTypes::VoidMessage* msg ) ...@@ -243,7 +243,7 @@ void PassiveLProcessor::processingMessage( UniSetTypes::VoidMessage* msg )
} }
catch(Exception& ex) catch(Exception& ex)
{ {
cout << myname << "(processingMessage): " << ex << endl; dlog[Debug::CRIT] << myname << "(processingMessage): " << ex << endl;
} }
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#!/bin/sh #!/bin/sh
uniset-start.sh -f ./uniset-plogicproc --schema schema.xml \ uniset-start.sh -g ./uniset-plogicproc --schema schema.xml \
--smemory-id SharedMemory --name LProcessor \ --smemory-id SharedMemory --name LProcessor \
--confile test.xml --unideb-add-levels info,crit,warn,level9,system --confile test.xml --unideb-add-levels info,crit,warn,level9,system
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