Skip to content

Commit

Permalink
Merge pull request #254 from OpenKNX/fix/dptconvert-8.010-to-busvalue
Browse files Browse the repository at this point in the history
Fix: Conversion of DPT8.010 to Bus
  • Loading branch information
thelsing authored Aug 9, 2023
2 parents bf9c3ff + efbbb52 commit 69d553d
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 69d553d

Please sign in to comment.