Skip to content

Commit ab47514

Browse files
committed
working on being able to share the SPI Bus
1 parent bcf9efa commit ab47514

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

micropy_updates/esp32/machine_sdcard.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ static mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args
197197
// SPI interface
198198
self->dev_config = (sdspi_device_config_t){
199199
.host_id = (spi_host_device_t)self->host.slot,
200-
.gpio_cs = (int)args[ARG_cs].u_int
200+
.gpio_cs = (int)args[ARG_cs].u_int,
201201
.gpio_cd = (int)args[ARG_cd].u_int,
202202
.gpio_wp = (int)args[ARG_wp].u_int,
203-
.gpio_int = SDSPI_SLOT_NO_INT,
204-
}
203+
.gpio_int = SDSPI_SLOT_NO_INT
204+
};
205205

206206
check_esp_err(sdspi_host_init_device(&self->dev_config, &self->sdspi_handle));
207207
} else {

0 commit comments

Comments
 (0)