Skip to content

Commit 7c41ad9

Browse files
committed
CMakeListsDefault.camke: Fix Fire/Tough SDCard initialization failure.
Signed-off-by: lbuque <[email protected]>
1 parent c262662 commit 7c41ad9

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

m5stack/CMakeListsDefault.cmake

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,15 @@ set(MICROPY_SOURCE_PORT
9393
${PROJECT_DIR}/../micropython/ports/esp32/modespnow.c
9494
)
9595

96-
if (BOARD_TYPE STREQUAL "cores3" OR BOARD_TYPE STREQUAL "core2" OR BOARD_TYPE STREQUAL "paper" OR BOARD_TYPE STREQUAL "basic")
96+
if (
97+
BOARD_TYPE STREQUAL "cores3"
98+
OR BOARD_TYPE STREQUAL "core2"
99+
OR BOARD_TYPE STREQUAL "paper"
100+
OR BOARD_TYPE STREQUAL "basic"
101+
OR BOARD_TYPE STREQUAL "fire"
102+
OR BOARD_TYPE STREQUAL "capsule"
103+
OR BOARD_TYPE STREQUAL "tough"
104+
)
97105
LIST(APPEND MICROPY_SOURCE_PORT ${PROJECT_DIR}/machine_sdcard.c)
98106
LIST(APPEND MICROPY_SOURCE_PORT ${PROJECT_DIR}/machine_hw_spi.c)
99107
else()

m5stack/CMakeListsLvgl.cmake

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,19 @@ set(MICROPY_SOURCE_PORT
9090
${PROJECT_DIR}/../micropython/ports/esp32/machine_sdcard.c
9191
)
9292

93-
if (BOARD_TYPE STREQUAL "cores3" OR BOARD_TYPE STREQUAL "core2")
93+
if (
94+
BOARD_TYPE STREQUAL "cores3"
95+
OR BOARD_TYPE STREQUAL "core2"
96+
OR BOARD_TYPE STREQUAL "paper"
97+
OR BOARD_TYPE STREQUAL "basic"
98+
OR BOARD_TYPE STREQUAL "fire"
99+
OR BOARD_TYPE STREQUAL "capsule"
100+
OR BOARD_TYPE STREQUAL "tough"
101+
)
102+
LIST(APPEND MICROPY_SOURCE_PORT ${PROJECT_DIR}/machine_sdcard.c)
94103
LIST(APPEND MICROPY_SOURCE_PORT ${PROJECT_DIR}/machine_hw_spi.c)
95104
else()
105+
LIST(APPEND MICROPY_SOURCE_PORT ${PROJECT_DIR}/../micropython/ports/esp32/machine_sdcard.c)
96106
LIST(APPEND MICROPY_SOURCE_PORT ${PROJECT_DIR}/../micropython/ports/esp32/machine_hw_spi.c)
97107
endif()
98108

0 commit comments

Comments
 (0)