Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions association_table_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ int32_t AssociationTableObject::translateAsap(uint16_t asap)
for (uint16_t i = 0; i < entries; i++)
{
uint16_t entry = ntohs(operator[](i));
if (lowByte(entry) == asap)
return highByte(entry);
if (highByte(entry) == asap)
return lowByte(entry);
}
return -1;
}
Expand Down Expand Up @@ -84,4 +84,4 @@ uint8_t AssociationTableObject::propertyCount()
PropertyDescription* AssociationTableObject::propertyDescriptions()
{
return _propertyDescriptions;
}
}
2 changes: 1 addition & 1 deletion bau_systemB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void BauSystemB::sendNextGroupTelegram()
GroupObjectTableObject& table = _groupObjTable;
uint16_t objCount = table.entryCount();

for (uint16_t asap = startIdx; asap < objCount; asap++)
for (uint16_t asap = startIdx; asap <= objCount; asap++)
{
GroupObject& go = table.get(asap);

Expand Down