mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
Removed doubled code (#158)
This commit is contained in:
parent
87edd3dfe0
commit
63ff2c5d4d
@ -22,12 +22,6 @@ int KNX_Decode_Value(uint8_t* payload, size_t payload_length, const Dpt& datatyp
|
|||||||
if (datatype.mainGroup == 2 && datatype.subGroup >= 1 && datatype.subGroup <= 12 && datatype.index <= 1)
|
if (datatype.mainGroup == 2 && datatype.subGroup >= 1 && datatype.subGroup <= 12 && datatype.index <= 1)
|
||||||
return busValueToBinaryControl(payload, payload_length, datatype, value);
|
return busValueToBinaryControl(payload, payload_length, datatype, value);
|
||||||
// DPT 3.* - Step Control
|
// DPT 3.* - Step Control
|
||||||
if (datatype.mainGroup == 3 && datatype.subGroup >= 7 && datatype.subGroup <= 8 && datatype.index <= 1)
|
|
||||||
return busValueToStepControl(payload, payload_length, datatype, value);
|
|
||||||
// DPT 4.* - Character// DPT 2.* - Binary Control
|
|
||||||
if (datatype.mainGroup == 2 && datatype.subGroup >= 1 && datatype.subGroup <= 12 && datatype.index <= 1)
|
|
||||||
return busValueToBinaryControl(payload, payload_length, datatype, value);
|
|
||||||
// DPT 3.* - Step Control
|
|
||||||
if (datatype.mainGroup == 3 && datatype.subGroup >= 7 && datatype.subGroup <= 8 && datatype.index <= 1)
|
if (datatype.mainGroup == 3 && datatype.subGroup >= 7 && datatype.subGroup <= 8 && datatype.index <= 1)
|
||||||
return busValueToStepControl(payload, payload_length, datatype, value);
|
return busValueToStepControl(payload, payload_length, datatype, value);
|
||||||
// DPT 4.* - Character
|
// DPT 4.* - Character
|
||||||
|
Loading…
Reference in New Issue
Block a user