Skip to content

Commit 318e212

Browse files
committed
Some fixes that I hope will fix the ESP32S3 core panic.
1 parent 3ef9e36 commit 318e212

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

micropy_updates/esp32/machine_sdcard.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,17 @@ static esp_err_t sdcard_ensure_card_init(sdcard_card_obj_t *self, bool force) {
114114
static mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
115115
// check arguments
116116
enum {
117-
ARG_slot,
118117
ARG_width,
119118
ARG_cd,
120119
ARG_wp,
121-
ARG_cs,
120+
ARG_slot,
122121
ARG_cmd,
123122
ARG_clk,
124123
ARG_data_pins,
125124
ARG_spi_bus,
126125
ARG_cs,
127126
ARG_freq,
128127
};
129-
#if SOC_SDMMC_USE_GPIO_MATRIX
130128

131129
static const mp_arg_t make_new_args[] = {
132130
{ MP_QSTR_width, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 1} },

0 commit comments

Comments
 (0)