From 25bf57fbe599fe7a7a1a147b2c0a4fa6ab497d66 Mon Sep 17 00:00:00 2001 From: gscalamera <graziano.scalamera@elettra.eu> Date: Thu, 27 Apr 2023 16:18:18 +0200 Subject: [PATCH] Add missing valid flag when parsing functions --- src/AlarmHandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AlarmHandler.cpp b/src/AlarmHandler.cpp index 35c3d0b..94f2af3 100644 --- a/src/AlarmHandler.cpp +++ b/src/AlarmHandler.cpp @@ -3813,7 +3813,8 @@ void AlarmHandler::do_alarm(bei_t& e) push_archive_event("alarmDisabled",attr_alarmDisabled_read, alarmDisabled_sz); } return; - } + } + //here not event error DEBUG_STREAM << "AlarmHandler::"<<__func__<<": arrived event=" << e.ev_name << endl; events->veclock.readerIn(); vector<event>::iterator found = \ @@ -5209,6 +5210,7 @@ formula_res_t AlarmHandler::eval_expression(iter_t const& i, string &attr_values res.ex_reason = it->ex_reason; res.ex_desc = it->ex_desc; res.ex_origin = it->ex_origin; + res.valid = true; #ifdef _DEBUG_FORMULA DEBUG_STREAM << " node name -> " << temp_attr_val.str() << " quality=" << res.quality << endl; #endif -- GitLab