Skip to content

Commit 98331a3

Browse files
committed
last update to the sdcard reader to get it to compile.
1 parent af76353 commit 98331a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

micropy_updates/esp32/machine_sdcard.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args
176176
self->flags = 0;
177177
// Note that these defaults are macros that expand to structure
178178
// constants so we can't directly assign them to fields.
179-
int freq = arg_vals[ARG_freq].u_int;
179+
int freq = args[ARG_freq].u_int;
180180

181181

182182
if (is_spi) {
@@ -202,7 +202,6 @@ static mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args
202202
if (is_spi) {
203203
// SPI interface
204204
DEBUG_printf(" Setting up SPI slot configuration");
205-
spi_host_device_t spi_host_id = self->host.slot;
206205

207206
self->dev_config = (sdspi_device_config_t){
208207
.host_id = (spi_host_device_t)self->host.slot,

0 commit comments

Comments
 (0)