diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2018-07-23 09:06:06 +0200 |
---|---|---|
committer | Jannis Völker <jannis.voelker@basyskom.com> | 2018-07-23 09:18:51 +0000 |
commit | a075d5c57eb1c68c00f57bf9bae454f56ab254b3 (patch) | |
tree | 30048a3d29381f7b25c0718413c278f8aa06aaa9 | |
parent | 7466febb77040c81ab3fa3b4649b49ff51559270 (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.cpp | 2 |
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 |