summaryrefslogtreecommitdiffstats
path: root/src/knx/core/qknxbytearray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knx/core/qknxbytearray.cpp')
-rw-r--r--src/knx/core/qknxbytearray.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/knx/core/qknxbytearray.cpp b/src/knx/core/qknxbytearray.cpp
index 6a573d6..53ed547 100644
--- a/src/knx/core/qknxbytearray.cpp
+++ b/src/knx/core/qknxbytearray.cpp
@@ -243,6 +243,9 @@ void QKnxByteArray::clear()
*/
void QKnxByteArray::resize(int size)
{
+ if (size == m_bytes.size())
+ return;
+
if (size > m_bytes.size())
m_bytes.append(size - m_bytes.size(), 0x00);
else