Commit e67d4a2
esp32/machine_sdcard: Fix SDMMC slot assignment for non-default slots.
The SDMMC_HOST_DEFAULT() macro sets slot to SDMMC_HOST_SLOT_1, but this
was not being overridden when the user specified a different slot number.
This caused SDMMC initialization to fail on chips like ESP32-P4 when
trying to use slot 0.
This commit ensures the slot number passed to the SDCard constructor is
properly assigned to the host configuration structure.
Tested on ESP32-P4 with SD card on slot 0.
Signed-off-by: jetpax <[email protected]>1 parent 50a5fe0 commit e67d4a2
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| |||
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| 312 | + | |
310 | 313 | | |
311 | 314 | | |
312 | 315 | | |
| |||
0 commit comments