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

And fix minor typo in docs when referring to SDCard class.
pull/4855/head
Nicko van Someren 2019-06-16 11:57:54 -06:00 zatwierdzone przez Damien George
rodzic 637aa9784d
commit 1a51fc9ddf
2 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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:

Wyświetl plik

@ -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()");