Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
non-destructive text micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
badge fixer
non-destructive text micropython
Commits
1a51fc9d
Commit
1a51fc9d
authored
Jun 16, 2019
by
Nicko van Someren
Committed by
Damien George
Jun 17, 2019
Browse files
Options
Downloads
Patches
Plain Diff
esp32/machine_sdcard: Fix bug in SPI slot number selection.
And fix minor typo in docs when referring to SDCard class.
parent
637aa978
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/library/machine.SDCard.rst
+1
-1
1 addition, 1 deletion
docs/library/machine.SDCard.rst
ports/esp32/machine_sdcard.c
+0
-1
0 additions, 1 deletion
ports/esp32/machine_sdcard.c
with
1 addition
and
2 deletions
docs/library/machine.SDCard.rst
+
1
−
1
View file @
1a51fc9d
...
@@ -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(
storag
e.SDCard(), "/sd")
uos.mount(
machin
e.SDCard(), "/sd")
The constrcutor takes the following paramters:
The constrcutor takes the following paramters:
...
...
This diff is collapsed.
Click to expand it.
ports/esp32/machine_sdcard.c
+
0
−
1
View file @
1a51fc9d
...
@@ -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()"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment