Skip to content
Snippets Groups Projects
Commit 01b9cb3f authored by Xavier ELATTAOUI's avatar Xavier ELATTAOUI
Browse files

compile error fixed

parent b28807f2
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>SY900S_channel-${aol}-${mode}</artifactId>
<version>2.2.1-SNAPSHOT</version>
<version>2.2.1</version>
<packaging>nar</packaging>
<name>SY900S_Channel</name>
<description>SY900S_channel device</description>
......
......@@ -157,6 +157,8 @@ namespace SY900S_Channel_ns
CREATE_SCALAR_ATTRIBUTE(attr_channel_read);
CREATE_SCALAR_ATTRIBUTE(attr_group_read);
create_SY900S_generic_Proxy();
}
//+----------------------------------------------------------------------------
......@@ -497,6 +499,13 @@ void SY900S_Channel::write_targetVoltage(Tango::WAttribute &attr)
set_state(argout);
return argout;
}
if ( !SY900S_generic_Proxy )
{
argout = Tango::FAULT;
set_status("Device initialization failed : no proxy created!");
set_state(argout);
return argout;
}
try
{
......@@ -558,16 +567,18 @@ void SY900S_Channel::write_targetVoltage(Tango::WAttribute &attr)
{
DEBUG_STREAM << "SY900S_Channel::write_read() entering..."<<endl;
response.clear();
// create a SY900S_generic proxy
if(SY900S_generic_Proxy==0)
create_SY900S_generic_Proxy();
//if(SY900S_generic_Proxy==0)
// create_SY900S_generic_Proxy();
try
{
if ( SY900S_generic_Proxy )
SY900S_generic_Proxy -> command_inout("WriteRead",command_to_send.c_str(),response);
DEBUG_STREAM<<"command_inout(WriteRead) done"<<endl;
return response;
}
catch(Tango::DevFailed &df)
......@@ -582,6 +593,7 @@ void SY900S_Channel::write_targetVoltage(Tango::WAttribute &attr)
(const char*) "Cannot send or read data on the socket device ",
(const char*) "SY900S_Channel::write_read()");
}
return response;
}
//+------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment