Skip to content

Commit e36fbf3

Browse files
committed
Fix crash for DPTs with less than 1byte in size
1 parent d5b9ffa commit e36fbf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/knx/group_object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ size_t GroupObject::sizeInMemory() const
203203
uint8_t code = lowByte(ntohs(_table->_tableData[_asap]));
204204
size_t result = asapValueSize(code);
205205

206-
if (code == 0)
206+
if (result == 0)
207207
return 1;
208208

209209
if (code == 14)

0 commit comments

Comments
 (0)