Skip to content
Snippets Groups Projects
Commit 2a483c28 authored by Alessio Igor Bogani's avatar Alessio Igor Bogani
Browse files

Allow commands execution on FAULT state

parent 7828a43e
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,6 @@
<type xsi:type="pogoDsl:VoidType"/>
</argout>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<excludedStates>FAULT</excludedStates>
<excludedStates>INIT</excludedStates>
</commands>
<commands name="Read" description="" execMethod="read" displayLevel="OPERATOR" polledPeriod="0">
......@@ -52,7 +51,6 @@
<type xsi:type="pogoDsl:CharArrayType"/>
</argout>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<excludedStates>FAULT</excludedStates>
<excludedStates>INIT</excludedStates>
</commands>
<commands name="ReadUntil" description="" execMethod="read_until" displayLevel="OPERATOR" polledPeriod="0">
......@@ -63,7 +61,6 @@
<type xsi:type="pogoDsl:CharArrayType"/>
</argout>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<excludedStates>FAULT</excludedStates>
<excludedStates>INIT</excludedStates>
</commands>
<attributes name="InputLength" attType="Scalar" rwType="READ" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" allocReadMember="true" isDynamic="false">
......
......@@ -114,8 +114,7 @@ bool USB2::is_Reconnections_allowed(TANGO_UNUSED(Tango::AttReqType type))
bool USB2::is_Write_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Compare device state with not allowed states.
if (get_state()==Tango::FAULT ||
get_state()==Tango::INIT)
if (get_state()==Tango::INIT)
{
/*----- PROTECTED REGION ID(USB2::WriteStateAllowed) ENABLED START -----*/
......@@ -134,8 +133,7 @@ bool USB2::is_Write_allowed(TANGO_UNUSED(const CORBA::Any &any))
bool USB2::is_Read_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Compare device state with not allowed states.
if (get_state()==Tango::FAULT ||
get_state()==Tango::INIT)
if (get_state()==Tango::INIT)
{
/*----- PROTECTED REGION ID(USB2::ReadStateAllowed) ENABLED START -----*/
......@@ -154,8 +152,7 @@ bool USB2::is_Read_allowed(TANGO_UNUSED(const CORBA::Any &any))
bool USB2::is_ReadUntil_allowed(TANGO_UNUSED(const CORBA::Any &any))
{
// Compare device state with not allowed states.
if (get_state()==Tango::FAULT ||
get_state()==Tango::INIT)
if (get_state()==Tango::INIT)
{
/*----- PROTECTED REGION ID(USB2::ReadUntilStateAllowed) ENABLED START -----*/
......
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