mirror of
https://github.com/esphome/esphome.git
synced 2026-02-20 08:25:35 -07:00
Update esphome/writer.py
Co-authored-by: J. Nick Koston <nick+github@koston.org>
This commit is contained in:
@@ -294,7 +294,7 @@ def _encode_string_symbols(
|
||||
text: str, prefix: str, bits: int, bit_suffix: str, endian: str, endian_suffix: str
|
||||
) -> list[str]:
|
||||
"""Encode a string as linker symbols for given word size and endianness."""
|
||||
symbols = []
|
||||
symbols: list[str] = []
|
||||
# Pad to word boundary with NUL (build time strings need trailing NUL)
|
||||
padded = text if prefix == "CONFIG_HASH_STR" else text + "\0"
|
||||
while len(padded) % bits != 0:
|
||||
|
||||
Reference in New Issue
Block a user