mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 02:56:01 +00:00
ba362a7c95e9cffce5b6a39da32b95f1c9f3bd3e
Per Copilot review: encode_varint_raw_48bit and calc_uint64_48bit_force would silently truncate bits 48..63 if ever called with a uint64 that doesn't fit in 48 bits. Real MAC addresses always fit, but since the helpers are exposed and the (mac_address) option is generic, narrow the fast path to [1<<42, 1<<48) so values outside that range fall back to the general encoder/size helpers. Re-verified byte-identical output and decoder round-trip across the 1<<48 boundary and all bit positions up to 63.
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
585 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
