alekslt / HANToMQTT

ESP32/ESP8266 HAN (M-Bus Metering Data) to MQTT
MIT License
35 stars 5 forks source link

Issue #4: Fix sign bug. #5

Closed alekslt closed 4 years ago

alekslt commented 4 years ago

Issue #4: Cast to int16_t before placing the value in a int32_t to correctly handle negative values.

alekslt commented 4 years ago

Based on synthetic testing this should work, but I don't have real data to test against.