fix build

This commit is contained in:
Thomas Kunze
2024-08-30 21:29:16 +02:00
parent f9ba9acc3d
commit b687cd24d9
15 changed files with 38 additions and 625 deletions

View File

@@ -2,8 +2,9 @@
#include "datapoint_types.h"
#include "../interface_object/group_object_table_object.h"
#include "../bits.h"
#include "../util/logger.h"
#include "../bits.h"
#include <cstring>
@@ -95,7 +96,7 @@ namespace Knx
return _data;
}
uint16_t GroupObject::asap()
uint16_t GroupObject::asap() const
{
return _asap;
}
@@ -228,6 +229,7 @@ namespace Knx
void GroupObject::processClassCallback(GroupObject& go)
{
LOGGER.info("processClassCallback for go %d, handlerset:%d", go.asap(), _updateHandlerStatic != 0);
if (_updateHandlerStatic != 0)
_updateHandlerStatic(go);
}
@@ -330,4 +332,9 @@ namespace Knx
return false;
}
bool operator==(const GroupObject& lhs, const GroupObject& rhs)
{
return lhs.asap() == rhs.asap();
}
}

View File

@@ -142,7 +142,7 @@ namespace Knx
* returns the Application Service Access Point of the group object. In reality this is just the number of the group object.
* (in german "KO-Nr")
*/
uint16_t asap();
uint16_t asap() const;
/**
* return the current value of the group object.
@@ -266,4 +266,6 @@ namespace Knx
Dpt _datapointType;
#endif
};
bool operator==(const GroupObject& lhs, const GroupObject& rhs);
}

View File

@@ -1,7 +1,7 @@
#include "table_object.h"
#include "../bits.h"
#include "../util/memory.h"
#include "../util/logger.h"
#include "../bits.h"
#define LOGGER Logger::logger("TableObject")