Add cEMI Server with KNX USB HID support (#47)

This commit is contained in:
nanosonde
2019-12-09 19:53:08 +01:00
committed by thelsing
parent fd0b16b1b4
commit a76fc31b80
45 changed files with 1927 additions and 101 deletions

View File

@@ -79,7 +79,7 @@ void IpParameterObject::readProperty(PropertyID propertyId, uint32_t start, uint
}
}
void IpParameterObject::writeProperty(PropertyID id, uint8_t start, uint8_t* data, uint8_t count)
void IpParameterObject::writeProperty(PropertyID id, uint32_t start, uint8_t* data, uint32_t& count)
{
switch (id)
{
@@ -114,6 +114,9 @@ void IpParameterObject::writeProperty(PropertyID id, uint8_t start, uint8_t* dat
for (uint8_t i = start; i < start + count; i++)
_friendlyName[i-1] = data[i - start];
break;
default:
count = 0;
break;
}
}