Skip to content
Snippets Groups Projects
Commit 1a51fc9d authored by Nicko van Someren's avatar Nicko van Someren Committed by Damien George
Browse files

esp32/machine_sdcard: Fix bug in SPI slot number selection.

And fix minor typo in docs when referring to SDCard class.
parent 637aa978
Branches
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ vary from platform to platform. ...@@ -30,7 +30,7 @@ vary from platform to platform.
The class implements the block protocol defined by :class:`uos.AbstractBlockDev`. The class implements the block protocol defined by :class:`uos.AbstractBlockDev`.
This allows the mounting of an SD card to be as simple as:: This allows the mounting of an SD card to be as simple as::
uos.mount(storage.SDCard(), "/sd") uos.mount(machine.SDCard(), "/sd")
The constrcutor takes the following paramters: The constrcutor takes the following paramters:
......
...@@ -203,7 +203,6 @@ STATIC mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args ...@@ -203,7 +203,6 @@ STATIC mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args
if (is_spi) { if (is_spi) {
self->host.slot = slot_num ? HSPI_HOST : VSPI_HOST; self->host.slot = slot_num ? HSPI_HOST : VSPI_HOST;
slot_num -= 2;
} }
DEBUG_printf(" Calling host.init()"); DEBUG_printf(" Calling host.init()");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment