esp32/machine_sdcard: Fix bug in SPI slot number selection.
And fix minor typo in docs when referring to SDCard class.
This commit is contained in:
parent
637aa9784d
commit
1a51fc9ddf
@ -30,7 +30,7 @@ vary from platform to platform.
|
||||
The class implements the block protocol defined by :class:`uos.AbstractBlockDev`.
|
||||
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:
|
||||
|
||||
|
@ -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) {
|
||||
self->host.slot = slot_num ? HSPI_HOST : VSPI_HOST;
|
||||
slot_num -= 2;
|
||||
}
|
||||
|
||||
DEBUG_printf(" Calling host.init()");
|
||||
|
Loading…
x
Reference in New Issue
Block a user