mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 00:58:40 +00:00
ecf36d60ae9f3b985201076742d8f9d594eb9f8d
Replace floating-point arithmetic with integer weighted average. This eliminates soft-float library calls on platforms without FPU (e.g., ESP8266), reducing the function from 352 bytes. The integer version uses uint16_t weighted average which matches the float version's output in 99.96% of cases (off-by-one in the remaining 0.04% due to float precision differences).
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
604 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
