Skip to content

Commit 0ad0c6f

Browse files
authored
Merge pull request #310 from Phil1pp/fix-go-size
Fix crash for DPTs with less than 1byte in size
2 parents d5b9ffa + e36fbf3 commit 0ad0c6f

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)