@@ -203,7 +203,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(storage_erase_filesystem_obj, 0, storage_erase_filesy
203203//| ...
204204//|
205205STATIC mp_obj_t storage_disable_usb_drive (void ) {
206- #if CIRCUITPY_USB_MSC
206+ #if CIRCUITPY_USB && CIRCUITPY_USB_MSC
207207 if (!common_hal_storage_disable_usb_drive ()) {
208208 #else
209209 if (true) {
@@ -228,7 +228,7 @@ MP_DEFINE_CONST_FUN_OBJ_0(storage_disable_usb_drive_obj, storage_disable_usb_dri
228228//| ...
229229//|
230230STATIC mp_obj_t storage_enable_usb_drive (void ) {
231- #if CIRCUITPY_USB_MSC
231+ #if CIRCUITPY_USB && CIRCUITPY_USB_MSC
232232 if (!common_hal_storage_enable_usb_drive ()) {
233233 #else
234234 if (true) {
@@ -275,38 +275,30 @@ STATIC const mp_rom_map_elem_t storage_module_globals_table[] = {
275275//| larger filesystems, but you will need to format the filesystem on another device.
276276//| """
277277//| ...
278- //|
279278//| def open(self, path: str, mode: str) -> None:
280279//| """Like builtin ``open()``"""
281280//| ...
282- //|
283281//| def ilistdir(
284282//| self, path: str
285283//| ) -> Iterator[Union[Tuple[AnyStr, int, int, int], Tuple[AnyStr, int, int]]]:
286284//| """Return an iterator whose values describe files and folders within
287285//| ``path``"""
288286//| ...
289- //|
290287//| def mkdir(self, path: str) -> None:
291288//| """Like `os.mkdir`"""
292289//| ...
293- //|
294290//| def rmdir(self, path: str) -> None:
295291//| """Like `os.rmdir`"""
296292//| ...
297- //|
298293//| def stat(self, path: str) -> Tuple[int, int, int, int, int, int, int, int, int, int]:
299294//| """Like `os.stat`"""
300295//| ...
301- //|
302296//| def statvfs(self, path: int) -> Tuple[int, int, int, int, int, int, int, int, int, int]:
303297//| """Like `os.statvfs`"""
304298//| ...
305- //|
306299//| def mount(self, readonly: bool, mkfs: VfsFat) -> None:
307300//| """Don't call this directly, call `storage.mount`."""
308301//| ...
309- //|
310302//| def umount(self) -> None:
311303//| """Don't call this directly, call `storage.umount`."""
312304//| ...
0 commit comments