Skip to content

Conversation

@SQ9MDD
Copy link

@SQ9MDD SQ9MDD commented Jan 6, 2026

Fix incorrect handling of signed float values in BaseDevice::addFloat().
Negative values were lost due to direct casting from float to uint64_t.
This change respects sensor.signed_value and correctly encodes signed values using two’s complement, while preserving existing behavior for unsigned sensors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant