Skip to content

Commit d33279b

Browse files
authored
Fix Storing List Value Selection in setValue (OpenZWave#23)
* Fix Storing List Value Selection in setValue Command
1 parent bcf82ab commit d33279b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

qt-ozwdaemon/mqttcommands/setValue.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ bool MqttCommand_SetValue::processMessage(rapidjson::Document &msg) {
118118
break;
119119
}
120120
case QTOZW_ValueIds::ValueIdTypes::List: {
121+
qDebug() << "Processing List";
121122
if (!msg["Value"].IsUint()) {
122123
this->sendSimpleStatus(false, QString("Incorrect Field Type for Value: Not Integer: ").append(msg["Value"].GetType()));
123124
qCWarning(ozwmcsv) << "Incorrect Field Type (Integer) for " << GetCommand() << ": Value: " << msg["Value"].GetType();
@@ -131,7 +132,9 @@ bool MqttCommand_SetValue::processMessage(rapidjson::Document &msg) {
131132
return false;
132133
}
133134
list.selectedItem = list.labels[index];
134-
data.fromValue<QTOZW_ValueIDList>(list);
135+
qDebug() << list.selectedItem;
136+
data.setValue<QTOZW_ValueIDList>(list);
137+
qDebug() << data;
135138
break;
136139
}
137140
case QTOZW_ValueIds::ValueIdTypes::Raw: {

0 commit comments

Comments
 (0)