From 4da991006a6e5ae700fec1ce826bf21e4787864d Mon Sep 17 00:00:00 2001 From: MattKBD Date: Fri, 27 Mar 2020 11:05:49 +1300 Subject: [PATCH] fixed typo on umount created its own entry, made mount example clearer (uses uos) as was confusing --- content/firmwareapi/micropython/uos.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/content/firmwareapi/micropython/uos.md b/content/firmwareapi/micropython/uos.md index ef6d3b53..2df84d6e 100644 --- a/content/firmwareapi/micropython/uos.md +++ b/content/firmwareapi/micropython/uos.md @@ -87,12 +87,16 @@ Alias for the `remove()` method. Mounts a block device (like an SD object) in the specified mount point. Example: ```python - -os.mount(sd, '/sd') -uos.unmount(path) +uos.mount(sd, '/sd') ``` -Unmounts a previously mounted block device from the given path. +#### uos.umount(mount\_point) + +Unmounts a previously mounted block device from the specified mount point. Example: + +```python +uos.umount('/sd') +``` #### uos.mkfs(block\_device or path)