Skip to content

Commit

Permalink
Fix: Writing Both Bytes of DPT8.010 to Bus
Browse files Browse the repository at this point in the history
  • Loading branch information
cornelius-koepp committed Aug 2, 2023
1 parent f7ac39c commit efbbb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/knx/dptconvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ int valueToBusValueSigned16(const KNXValue& value, uint8_t* payload, size_t payl
{
if ((double)value < -327.68 || (double)value > 327.67)
return false;
signed16ToPayload(payload, payload_length, 0, (double)value * 100.0, 0xFF);
signed16ToPayload(payload, payload_length, 0, (int16_t)((double)value * 100.0), 0xFFFF);
}
else
signed16ToPayload(payload, payload_length, 0, (uint64_t)value, 0xffff);
Expand Down

0 comments on commit efbbb52

Please sign in to comment.