Cleanups.
This commit is contained in:
@@ -221,14 +221,13 @@ std::optional<BCValuePtr> BCXmlLoader::makeDataValue( BCDevice::ID deviceID, con
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
bool ok;
|
||||
// geht nicht auf qt6.8 von debian trixie
|
||||
//std::optional<quint64> IDVal = s_bcValueEnum.keyToValue64( params.ID.toLatin1().constData() );
|
||||
bool ok;
|
||||
int IDVal = s_bcValueEnum.keyToValue( params.ID.toLatin1().constData(), &ok );
|
||||
qDebug() << " --- should create: " << params.Label << ": " << params.UnitType;
|
||||
//if( IDVal.has_value() )
|
||||
if( IDVal )
|
||||
if( ok )
|
||||
{
|
||||
auto valueType = BCValueType::fetchValueType(params.UnitType);
|
||||
if( valueType.has_value() )
|
||||
|
||||
Reference in New Issue
Block a user