mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
76c8eeede987807ca31ea0a24182fface63ba2f8
When max_brightness and local_brightness_ are small but non-zero, the intermediate (uncorrected / max_brightness) * 255 can exceed 65535 before the std::min(255) clamp runs, producing an incorrect low result. Widen intermediates to uint32_t. Copilot review catch on #15727.
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
545 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
