mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 09:08:41 +00:00
856a0b0c8379e2bff785a8a8c387633cfc251c6e
Replace floating-point comparison (value != 0.0f) with integer bit-pattern check via a shared float_to_raw() helper in both encode_float() and calc_float(). This avoids software float library calls on platforms without hardware FPU (ESP8266, some LibreTiny chips) and ensures both functions use identical zero-check logic so size calculation always matches encoding.
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
594 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
