mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
add has_spi board property (#1153)
* always spi for h7 * disable for now
This commit is contained in:
@@ -152,7 +152,7 @@ for project_name in build_projects:
|
||||
"-std=gnu11",
|
||||
] + project["PROJECT_FLAGS"] + common_flags
|
||||
|
||||
if "ENABLE_SPI" in os.environ and not project_name.startswith('pedal'):
|
||||
if ("ENABLE_SPI" in os.environ or "h7" in project_name) and not project_name.startswith('pedal'):
|
||||
flags.append('-DENABLE_SPI')
|
||||
|
||||
project_env = Environment(
|
||||
|
||||
Reference in New Issue
Block a user