mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
Fix: Writing Both Bytes of DPT8.010 to Bus
This commit is contained in:
parent
f7ac39c66f
commit
efbbb52717
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user