fix: reset flag wasUnloaded

This commit is contained in:
Mike 2025-05-13 13:25:06 +02:00
parent 5c3ae41ea1
commit 3c73cdca5e
No known key found for this signature in database
3 changed files with 9 additions and 0 deletions

View File

@ -62,6 +62,9 @@ void BauSystemBDevice::loop()
{
writeMemory();
_unloadStarted = 0;
_addrTable.unsetWasundloaded();
_assocTable.unsetWasundloaded();
_groupObjTable.unsetWasundloaded();
}
}

View File

@ -422,3 +422,8 @@ bool TableObject::getWasUnloaded()
{
return _wasUnloaded;
}
void TableObject::unsetWasundloaded()
{
_wasUnloaded = false;
}

View File

@ -36,6 +36,7 @@ class TableObject: public InterfaceObject
static BeforeTablesUnloadCallback beforeTablesUnloadCallback();
bool getWasUnloaded();
void unsetWasundloaded();
protected:
/**