mirror of
https://github.com/thelsing/knx.git
synced 2025-08-13 13:46:20 +02:00
Update association_table_object.cpp
Bugfix, find asap in association Table not working correctly
This commit is contained in:
parent
0762e753f7
commit
643909a7e3
@ -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;
|
||||
}
|
||||
@ -84,4 +84,4 @@ uint8_t AssociationTableObject::propertyCount()
|
||||
PropertyDescription* AssociationTableObject::propertyDescriptions()
|
||||
{
|
||||
return _propertyDescriptions;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user