diff --git a/src/USB2.xmi b/src/USB2.xmi index 8f5cd002617c1ba4c81596e4a7900f8909db2632..2b65443acb3dbe424d123963abad69dddb900f28 100644 --- a/src/USB2.xmi +++ b/src/USB2.xmi @@ -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"> diff --git a/src/USB2StateMachine.cpp b/src/USB2StateMachine.cpp index b6975ba8af9876318cb2b6bcebe2a507a467970f..a25b931eb1f8a3ca314c9f2fd96730054e33562c 100644 --- a/src/USB2StateMachine.cpp +++ b/src/USB2StateMachine.cpp @@ -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 -----*/