From 22bb1464c73dd1520d34cf5d319b45cefd1bb636 Mon Sep 17 00:00:00 2001
From: Claudio Scafuri <claudio.scafuri@elettra.eu>
Date: Mon, 4 Nov 2024 14:30:13 +0100
Subject: [PATCH] fix hadling of DesignStrength

---
 src/E2Sextupole.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/E2Sextupole.cpp b/src/E2Sextupole.cpp
index eea8809..4be02d1 100644
--- a/src/E2Sextupole.cpp
+++ b/src/E2Sextupole.cpp
@@ -747,11 +747,12 @@ void E2Sextupole::write_DesignStrength(Tango::WAttribute &attr)
 	//	Add your own code
 	/* clang-format off */
 	*attr_DesignStrength_read = w_val;
-	if (design_strength_initialized == false){
+	if (design_strength_initialized == false){ // only with a value of DesignStrength init process can be completed
 		design_strength_initialized = true;
 		init_strengths();
 		subscribe_events();
 	}
+	else init_strengths();
 	/*----- PROTECTED REGION END -----*/	//	E2Sextupole::write_DesignStrength
 }
 
-- 
GitLab