FIX issue introduced with #194 (#201)

- if go handler writes to same go, value is not sent to bus anymore

Co-authored-by: Waldemar Porscha <waldemar.porscha@sap.com>
This commit is contained in:
mumpf 2022-04-25 11:18:57 +02:00 committed by GitHub
parent 29702f69c3
commit 4b8b951be8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,15 +128,19 @@ void BauSystemBDevice::updateGroupObject(GroupObject & go, uint8_t * data, uint8
if (go.commFlag() != WriteRequest) if (go.commFlag() != WriteRequest)
{ {
go.commFlag(Updated);
#ifdef SMALL_GROUPOBJECT #ifdef SMALL_GROUPOBJECT
GroupObject::processClassCallback(go); GroupObject::processClassCallback(go);
#else #else
GroupObjectUpdatedHandler handler = go.callback(); GroupObjectUpdatedHandler handler = go.callback();
if (handler) if (handler)
handler(go); handler(go);
#endif #endif
} }
go.commFlag(Updated); else
{
go.commFlag(Updated);
}
} }
bool BauSystemBDevice::configured() bool BauSystemBDevice::configured()