Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SzczepanLeon authored Oct 8, 2024
1 parent 709a0e3 commit 65c14be
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/wmbus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ async def to_code(config):
cg.add_library("SPI", None)
cg.add_library("LSatan/SmartRC-CC1101-Driver-Lib", "2.5.7")

cg.add_platformio_option("build_src_filter", ["+<*>", "-<.git/>", "-<.svn/>"])

if config[CONF_ALL_DRIVERS]:
cg.add_platformio_option("build_src_filter", ["+<*>", "-<.git/>", "-<.svn/>", "+<**/wmbus/driver_*.cpp>", "+<**/wmbus/driver_unknown.cpp"])
else:
cg.add_platformio_option("build_src_filter", ["+<*>", "-<.git/>", "-<.svn/>", "-<**/wmbus/driver_*.cpp>", "+<**/wmbus/driver_unknown.cpp"])
cg.add_platformio_option("build_src_filter", ["+<**/wmbus/driver_*.cpp>"])
else
cg.add_platformio_option("build_src_filter", ["-<**/wmbus/driver_*.cpp>"])

cg.add_platformio_option("build_src_filter", ["+<**/wmbus/driver_unknown.cpp>"])

0 comments on commit 65c14be

Please sign in to comment.