mirror of
https://github.com/esphome/esphome.git
synced 2026-07-11 09:25:34 +00:00
76690e69007d2aff3488e7faa95f23b3726d600e
The two_byte_to_int() function used `char` parameters instead of `uint8_t`, causing sign extension for byte values >= 0x80. This produced incorrect sensor values for distances where value % 256 >= 128 (e.g. 128cm reported as -128, 200cm reported as -56). Also removed the unnecessary `(int16_t)` cast and switched from `+` to `|` for proper bitwise assembly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
529 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
