summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannis Voelker <jannis.voelker@basyskom.com>2018-07-23 09:06:06 +0200
committerJannis Völker <jannis.voelker@basyskom.com>2018-07-23 09:18:51 +0000
commita075d5c57eb1c68c00f57bf9bae454f56ab254b3 (patch)
tree30048a3d29381f7b25c0718413c278f8aa06aaa9
parent7466febb77040c81ab3fa3b4649b49ff51559270 (diff)
Fix subscription sharing for publishing interval 0
If multiple monitored items with a publishing interval of 0 were requested, a new subscription was created for each monitored item. Change-Id: Ia4c0173a3c1e7b2121e972748a0e5087e78c4851 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
-rw-r--r--src/opcua/client/qopcuabackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opcua/client/qopcuabackend.cpp b/src/opcua/client/qopcuabackend.cpp
index 8dc3652..d36b204 100644
--- a/src/opcua/client/qopcuabackend.cpp
+++ b/src/opcua/client/qopcuabackend.cpp
@@ -86,7 +86,7 @@ QOpcUa::Types QOpcUaBackend::attributeIdToTypeId(QOpcUa::NodeAttribute attr)
double QOpcUaBackend::revisePublishingInterval(double requestedValue, double minimumValue)
{
- return requestedValue == 0 ? 0 : std::max(requestedValue, minimumValue);
+ return std::max(requestedValue, minimumValue);
}
QT_END_NAMESPACE