Skip to content
Snippets Groups Projects
Commit 4a660db3 authored by Alexandre MALFREYT's avatar Alexandre MALFREYT
Browse files

fix: handle empty boardType in get_device_property() to improve error handling

parent ccec3c51
Branches
Tags
1 merge request!4develop -> main
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment