Stronger if OR condition precedence
@@ -1080,8 +1080,8 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt)
return sendConfigureReportingRequest(bt, {rq, rq2, rq3, rq4});
}
- else if (sensor && sensor->modelId() == QLatin1String("SLR2") || // Hive
- sensor && sensor->modelId().startsWith(QLatin1String("TH112")) ) // Sinope
+ else if ((sensor && sensor->modelId() == QLatin1String("SLR2")) || // Hive
+ (sensor && sensor->modelId().startsWith(QLatin1String("TH112")))) // Sinope
{
rq.dataType = deCONZ::Zcl16BitInt;
rq.attributeId = 0x0000; // local temperature
