mirror of
				https://github.com/thelsing/knx.git
				synced 2025-10-26 10:26:25 +01:00 
			
		
		
		
	Merge pull request #310 from Phil1pp/fix-go-size
Fix crash for DPTs with less than 1byte in size
This commit is contained in:
		
						commit
						0ad0c6f2a2
					
				@ -203,7 +203,7 @@ size_t GroupObject::sizeInMemory() const
 | 
				
			|||||||
    uint8_t code = lowByte(ntohs(_table->_tableData[_asap]));
 | 
					    uint8_t code = lowByte(ntohs(_table->_tableData[_asap]));
 | 
				
			||||||
    size_t result = asapValueSize(code);
 | 
					    size_t result = asapValueSize(code);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (code == 0)
 | 
					    if (result == 0)
 | 
				
			||||||
        return 1;
 | 
					        return 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (code == 14)
 | 
					    if (code == 14)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user