Commit 08979eae authored by Pavel Vainerman's avatar Pavel Vainerman

(LogicProcessor): заменяю использование ui на shm

parent 7892eb68
...@@ -59,7 +59,7 @@ void PassiveLProcessor::askSensors( UniversalIO::UIOCommand cmd ) ...@@ -59,7 +59,7 @@ void PassiveLProcessor::askSensors( UniversalIO::UIOCommand cmd )
try try
{ {
for( EXTList::iterator it=extInputs.begin(); it!=extInputs.end(); ++it ) for( EXTList::iterator it=extInputs.begin(); it!=extInputs.end(); ++it )
UniSetObject::ui.askState(it->sid,cmd); shm->askSensor(it->sid,cmd);
} }
catch( Exception& ex ) catch( Exception& ex )
{ {
...@@ -156,11 +156,11 @@ void PassiveLProcessor::setOuts() ...@@ -156,11 +156,11 @@ void PassiveLProcessor::setOuts()
switch(it->iotype) switch(it->iotype)
{ {
case UniversalIO::DigitalInput: case UniversalIO::DigitalInput:
UniSetObject::ui.saveState(it->sid,it->lnk->from->getOut(),it->iotype); shm->saveLocalState(it->sid,it->lnk->from->getOut(),it->iotype);
break; break;
case UniversalIO::DigitalOutput: case UniversalIO::DigitalOutput:
UniSetObject::ui.setState(it->sid,it->lnk->from->getOut()); shm->setState(it->sid,it->lnk->from->getOut());
break; break;
default: default:
...@@ -188,11 +188,11 @@ void PassiveLProcessor::sigterm( int signo ) ...@@ -188,11 +188,11 @@ void PassiveLProcessor::sigterm( int signo )
switch(it->iotype) switch(it->iotype)
{ {
case UniversalIO::DigitalInput: case UniversalIO::DigitalInput:
UniSetObject::ui.saveState(it->sid,false,it->iotype); shm->saveLocalState(it->sid,false,it->iotype);
break; break;
case UniversalIO::DigitalOutput: case UniversalIO::DigitalOutput:
UniSetObject::ui.setState(it->sid,false); shm->setState(it->sid,false);
break; break;
default: default:
......
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