From 4a660db36380f0f0395587da4b3362e1ddb3273b Mon Sep 17 00:00:00 2001
From: MALFREYT <alexandre.malfreyt@synchrotron-soleil.fr>
Date: Wed, 23 Apr 2025 15:01:37 +0200
Subject: [PATCH] fix: handle empty boardType in get_device_property() to
 improve error handling

---
 src/SingleShotAO.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SingleShotAO.cpp b/src/SingleShotAO.cpp
index 12080ad..9a61cc0 100755
--- a/src/SingleShotAO.cpp
+++ b/src/SingleShotAO.cpp
@@ -797,7 +797,7 @@ void SingleShotAO::get_device_property()
 
 	//- <BoardType> -----------------------
 	// 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;
 		critical_properties_missing = true;
-- 
GitLab