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,6 +128,7 @@ 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
@ -136,7 +137,10 @@ void BauSystemBDevice::updateGroupObject(GroupObject & go, uint8_t * data, uint8
handler(go); handler(go);
#endif #endif
} }
else
{
go.commFlag(Updated); go.commFlag(Updated);
}
} }
bool BauSystemBDevice::configured() bool BauSystemBDevice::configured()