diff --git a/src/Serial2.xmi b/src/Serial2.xmi index f156a9b33175f84a80c0f3a7c52c28c85f494827..4b33778b44e64366d7d03caeaa6295fdbe115597 100644 --- a/src/Serial2.xmi +++ b/src/Serial2.xmi @@ -45,7 +45,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"> @@ -56,7 +55,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"> @@ -67,7 +65,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/Serial2StateMachine.cpp b/src/Serial2StateMachine.cpp index c45e4421c8931d7c33dbd1cff6ab09a801c67201..65103a8c4532f9fab957f231703c5aa425286e5c 100644 --- a/src/Serial2StateMachine.cpp +++ b/src/Serial2StateMachine.cpp @@ -114,8 +114,7 @@ bool Serial2::is_Reconnections_allowed(TANGO_UNUSED(Tango::AttReqType type)) bool Serial2::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(Serial2::WriteStateAllowed) ENABLED START -----*/ @@ -134,8 +133,7 @@ bool Serial2::is_Write_allowed(TANGO_UNUSED(const CORBA::Any &any)) bool Serial2::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(Serial2::ReadStateAllowed) ENABLED START -----*/ @@ -154,8 +152,7 @@ bool Serial2::is_Read_allowed(TANGO_UNUSED(const CORBA::Any &any)) bool Serial2::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(Serial2::ReadUntilStateAllowed) ENABLED START -----*/