Skip to content
Snippets Groups Projects
Commit b1491cda authored by Jean Coquet's avatar Jean Coquet
Browse files

maintenant le device demarre meme quand le materiel n'est pas allum�.

parent 1a3d8c82
Branches
Tags
No related merge requests found
......@@ -8,7 +8,7 @@
</parent>
<groupId>fr.soleil.device</groupId>
<artifactId>CYBERSTARx1000-${aol}-${mode}</artifactId>
<version>1.3.9-SNAPSHOT</version>
<version>1.3.9</version>
<packaging>nar</packaging>
<name>CYBERSTARx1000</name>
<description>CYBERSTARx1000 device</description>
......
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentation/CYBERSTAR/src/CYBERSTARx1000.cpp,v 1.26 2010-09-06 13:28:39 jean_coquet Exp $";
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentation/CYBERSTAR/src/CYBERSTARx1000.cpp,v 1.27 2010-09-06 14:03:17 jean_coquet Exp $";
//+=============================================================================
//
// file : CYBERSTARx1000.cpp
......@@ -13,9 +13,12 @@ static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentatio
//
// $Author: jean_coquet $
//
// $Revision: 1.26 $
// $Revision: 1.27 $
//
// $Log: not supported by cvs2svn $
// Revision 1.26 2010/09/06 13:28:39 jean_coquet
// le device doit demarrer mme en cas d'appareil eteint
//
// Revision 1.25 2010/03/26 09:18:29 vince_soleil
// "Migration_Tango7_Part2"
//
......@@ -232,8 +235,24 @@ namespace CYBERSTARx1000_ns
//pointer to device proxy initialized to 0
mySerial = 0;
// initialize write part of attributes
try
{
read_upper();
read_lower();
}
catch (Tango::DevFailed &e)
{
this->init_device_done = false;
ERROR_STREAM << "CYBERSTARx1000::init_device() caught DevFailed trying to call read_upper() or read_lower() [" << e << "]" << std::endl;
return;
}
catch (...)
{
this->init_device_done = false;
ERROR_STREAM << "CYBERSTARx1000::init_device() caught (...) trying to call read_upper() or read_lower() " << std::endl;
return;
}
attr_scaUpperThreshold_write=(*attr_scaUpperThreshold_read);
attr_scaLowerThreshold_write=(*attr_scaLowerThreshold_read);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment