Skip to content
Snippets Groups Projects
Commit a893889e authored by Sonia Minolli's avatar Sonia Minolli
Browse files

Slave mode in SCALAR config forbidden (TANGODEVIC-1624)

parent 56e40729
Branches
Tags
No related merge requests found
No preview for this file type
......@@ -9,7 +9,7 @@
<groupId>fr.soleil.device</groupId>
<artifactId>PulseCounting-${aol}-${mode}</artifactId>
<version>2.1.2</version>
<version>2.1.3-SNAPSHOT</version>
<packaging>nar</packaging>
<name>PulseCounting</name>
......
......@@ -987,6 +987,16 @@ void PulseCounting::write_acquisitionMode(Tango::WAttribute &attr)
if (l_str.compare(ACQ_MODE_SCAL_STR) == 0)
{
l_mode = ACQ_MODE_SCAL;
// soso is master
// Master config only
if (!this->isMaster)
{
THROW_DEVFAILED(
_CPTC("CONFIGURATION_ERROR"),
_CPTC("Cannot use slave configuration in SCALAR mode: check IsMaster property first!"),
_CPTC("PulseCounting::write_acquisitionMode"));
}
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment