From cae65d0f4892121638dbdf64898426eaf864278f Mon Sep 17 00:00:00 2001 From: Waldemar Porscha Date: Thu, 21 Apr 2022 16:35:34 +0200 Subject: [PATCH] FIX issue introduced with #194 - if go handler writes to same go, value is not sent to bus anymore --- src/knx/bau_systemB_device.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/knx/bau_systemB_device.cpp b/src/knx/bau_systemB_device.cpp index 25a7e3b..468137c 100644 --- a/src/knx/bau_systemB_device.cpp +++ b/src/knx/bau_systemB_device.cpp @@ -128,15 +128,19 @@ void BauSystemBDevice::updateGroupObject(GroupObject & go, uint8_t * data, uint8 if (go.commFlag() != WriteRequest) { + go.commFlag(Updated); #ifdef SMALL_GROUPOBJECT - GroupObject::processClassCallback(go); + GroupObject::processClassCallback(go); #else GroupObjectUpdatedHandler handler = go.callback(); if (handler) handler(go); #endif } - go.commFlag(Updated); + else + { + go.commFlag(Updated); + } } bool BauSystemBDevice::configured()