Fix crash for DPTs with less than 1byte in size

This commit is contained in:
Phil1pp 2025-05-02 10:24:11 +02:00
parent d5b9ffa0a9
commit e36fbf3b53

View File

@ -203,7 +203,7 @@ size_t GroupObject::sizeInMemory() const
uint8_t code = lowByte(ntohs(_table->_tableData[_asap]));
size_t result = asapValueSize(code);
if (code == 0)
if (result == 0)
return 1;
if (code == 14)