mirror of
https://github.com/esphome/esphome.git
synced 2026-09-23 13:08:41 +00:00
Use tuple instead of list for static iteration
This commit is contained in:
@@ -1477,7 +1477,7 @@ async def to_code(config):
|
||||
if conf[CONF_ADVANCED][CONF_ENABLE_FULL_PRINTF]:
|
||||
cg.add_define("USE_FULL_PRINTF")
|
||||
else:
|
||||
for symbol in ["vprintf", "printf", "fprintf"]:
|
||||
for symbol in ("vprintf", "printf", "fprintf"):
|
||||
cg.add_build_flag(f"-Wl,--wrap={symbol}")
|
||||
else:
|
||||
cg.add_build_flag("-DUSE_ARDUINO")
|
||||
|
||||
Reference in New Issue
Block a user