diff options
| author | Nicko van Someren | 2019-06-16 11:57:54 -0600 |
|---|---|---|
| committer | Damien George | 2019-06-17 12:36:22 +1000 |
| commit | 1a51fc9ddf889c6a81e0156e6d438e4228479874 (patch) | |
| tree | bdf6b17d36367c4f95966045e07d6c0c0ad8db4d /ports/esp32/machine_sdcard.c | |
| parent | 637aa9784dc96301cfa5c4ccdd0ab1ae7bad5744 (diff) | |
esp32/machine_sdcard: Fix bug in SPI slot number selection.
And fix minor typo in docs when referring to SDCard class.
Diffstat (limited to 'ports/esp32/machine_sdcard.c')
| -rw-r--r-- | ports/esp32/machine_sdcard.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ports/esp32/machine_sdcard.c b/ports/esp32/machine_sdcard.c index 633d4031d..1400c56f3 100644 --- a/ports/esp32/machine_sdcard.c +++ b/ports/esp32/machine_sdcard.c @@ -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()"); |
