Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit b61b7c4

Browse files
committed
Drop value checks when changing alarm thresholds
Do not check if min or max value threshold is exceeded when changing alarm threshold. This feature was not working as intended and it was agreed that it shall be removed. Fixes #401.
1 parent 6573cd1 commit b61b7c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cppapi/server/attrgetsetprop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,12 +1320,12 @@ void Attribute::set_one_alarm_prop(const char *prop_name,const CORBA::String_mem
13201320
{
13211321
WAttribute *w_att = static_cast<WAttribute *>(this);
13221322
std::string mem_value;
1323-
if (strcmp(prop_name,"min_value") == 0 || strcmp(prop_name,"min_alarm") == 0)
1323+
if (strcmp(prop_name,"min_value") == 0)
13241324
{
13251325
if ((w_att->is_memorized() == true) && (w_att->mem_value_below_above(MIN,mem_value) == true))
13261326
throw_min_max_value(d_name,mem_value,MIN);
13271327
}
1328-
else if (strcmp(prop_name,"max_value") == 0 || strcmp(prop_name,"max_alarm") == 0)
1328+
else if (strcmp(prop_name,"max_value") == 0)
13291329
{
13301330
if ((w_att->is_memorized() == true) && (w_att->mem_value_below_above(MAX,mem_value) == true))
13311331
throw_min_max_value(d_name,mem_value,MAX);

0 commit comments

Comments
 (0)