This commit is contained in:
Thomas Kunze 2024-09-17 20:26:28 +02:00
parent 1a8a02f633
commit 9ef7f124b8

View File

@ -108,10 +108,6 @@ namespace Knx
int KNX_Encode_Value(const KNXValue& value, uint8_t* payload, size_t payload_length, const Dpt& datatype) int KNX_Encode_Value(const KNXValue& value, uint8_t* payload, size_t payload_length, const Dpt& datatype)
{ {
// DPT 14.* - 32 Bit Float
if (datatype.mainGroup == 14 && datatype.subGroup <= 79 && !datatype.index)
return valueToBusValueFloat32(value, payload, payload_length, datatype);
// DPT 15.* - Access Data // DPT 15.* - Access Data
if (datatype.mainGroup == 15 && !datatype.subGroup && datatype.index <= 5) if (datatype.mainGroup == 15 && !datatype.subGroup && datatype.index <= 5)
return valueToBusValueAccess(value, payload, payload_length, datatype); return valueToBusValueAccess(value, payload, payload_length, datatype);