Skip to content
Snippets Groups Projects

Add epic_fs_is_attached(), os.fs_is_attached(), and make the menu automatically return from USB mode

Merged rahix requested to merge rahix/close-msc-automatically into master
6 files
+ 49
1
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -115,3 +115,17 @@ Card10-Specific
.. py:data:: USB_FLASH
Mass-Storage device active.
.. py:function:: fs_is_attached()
Check whether the filesystem is currently attached to card10 (or whether a connected
USB host is currently holding control over it and possibly writing to it).
:returns:
- ``True`` if the filesystem is attached to card10 and an app can read and
write files.
- ``False`` if the filesystem is not available to card10 because a USB
host is currently controlling it.
.. versionadded: 1.18
Loading