Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • main
  • release_0_1
  • release_1_0_0
  • release_1_0_1
  • release_1_0_2
  • release_1_0_3
  • release_1_0_4
  • release_2_0_0
  • release_2_0_1
  • release_2_0_2
  • release_2_0_4
  • release_2_1_0
  • v0
13 results

Target

Select target project
  • software-control-system/tango-devices/inputoutput/adlink/singleshotao
1 result
Select Git revision
  • main
  • release_0_1
  • release_1_0_0
  • release_1_0_1
  • release_1_0_2
  • release_1_0_3
  • release_1_0_4
  • release_2_0_0
  • release_2_0_1
  • release_2_0_2
  • release_2_0_4
  • release_2_1_0
  • v0
13 results
Show changes
...@@ -267,8 +267,15 @@ void SingleShotAO::init_device() ...@@ -267,8 +267,15 @@ void SingleShotAO::init_device()
ERROR_STREAM << "SingleShotAO::init_device::Tango::DevFailed exception caught " ERROR_STREAM << "SingleShotAO::init_device::Tango::DevFailed exception caught "
<< "while trying to read device properties from TANGO database" << "while trying to read device properties from TANGO database"
<< std::endl; << std::endl;
ERROR_STREAM << df << std::endl; std::string error_msg = df.errors[0].desc;
m_currStatus = "Failed to get property. See log for details"; std::istringstream error_stream(error_msg);
std::string line;
std::getline(error_stream, line); // Read the first line
ERROR_STREAM << line << std::endl;
while (std::getline(error_stream, line)) { // Read the rest of the lines
ERROR_STREAM << " - " << line << std::endl;
}
m_currStatus = error_msg;
m_state = Tango::FAULT; m_state = Tango::FAULT;
return; return;
} }
...@@ -789,7 +796,7 @@ void SingleShotAO::get_device_property() ...@@ -789,7 +796,7 @@ void SingleShotAO::get_device_property()
//- <BoardType> ----------------------- //- <BoardType> -----------------------
// Case 1 (error): boardType is set to the default value in the database // Case 1 (error): boardType is set to the default value in the database
if (boardType == boardType_default) if (boardType == boardType_default || boardType == "")
{ {
errorMessages << "Device property <BoardType> is not set (default value " << boardType_default << " needs to be replaced)" << endl; errorMessages << "Device property <BoardType> is not set (default value " << boardType_default << " needs to be replaced)" << endl;
critical_properties_missing = true; critical_properties_missing = true;
......