Skip to content

Commit 9f04a81

Browse files
authored
Merge pull request #247 from mattkemp/development-publish
fixed umount
2 parents 21d3913 + 8f56d7a commit 9f04a81

File tree

1 file changed

+8
-4
lines changed
  • content/firmwareapi/micropython

1 file changed

+8
-4
lines changed

content/firmwareapi/micropython/uos.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,16 @@ Alias for the `remove()` method.
8787
Mounts a block device (like an SD object) in the specified mount point. Example:
8888

8989
```python
90-
91-
os.mount(sd, '/sd')
92-
uos.unmount(path)
90+
uos.mount(sd, '/sd')
9391
```
9492

95-
Unmounts a previously mounted block device from the given path.
93+
#### uos.umount(mount\_point)
94+
95+
Unmounts a previously mounted block device from the specified mount point. Example:
96+
97+
```python
98+
uos.umount('/sd')
99+
```
96100

97101
#### uos.mkfs(block\_device or path)
98102

0 commit comments

Comments
 (0)