FIX issue introduced with #194

- if go handler writes to same go, value is not sent to bus anymore
This commit is contained in:
Waldemar Porscha 2022-04-21 16:35:34 +02:00
parent 29702f69c3
commit cae65d0f48

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()