@@ -203,7 +203,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(storage_erase_filesystem_obj, 0, storage_erase_filesy
203
203
//| ...
204
204
//|
205
205
STATIC mp_obj_t storage_disable_usb_drive (void ) {
206
- #if CIRCUITPY_USB_MSC
206
+ #if CIRCUITPY_USB && CIRCUITPY_USB_MSC
207
207
if (!common_hal_storage_disable_usb_drive ()) {
208
208
#else
209
209
if (true) {
@@ -228,7 +228,7 @@ MP_DEFINE_CONST_FUN_OBJ_0(storage_disable_usb_drive_obj, storage_disable_usb_dri
228
228
//| ...
229
229
//|
230
230
STATIC mp_obj_t storage_enable_usb_drive (void ) {
231
- #if CIRCUITPY_USB_MSC
231
+ #if CIRCUITPY_USB && CIRCUITPY_USB_MSC
232
232
if (!common_hal_storage_enable_usb_drive ()) {
233
233
#else
234
234
if (true) {
@@ -275,38 +275,30 @@ STATIC const mp_rom_map_elem_t storage_module_globals_table[] = {
275
275
//| larger filesystems, but you will need to format the filesystem on another device.
276
276
//| """
277
277
//| ...
278
- //|
279
278
//| def open(self, path: str, mode: str) -> None:
280
279
//| """Like builtin ``open()``"""
281
280
//| ...
282
- //|
283
281
//| def ilistdir(
284
282
//| self, path: str
285
283
//| ) -> Iterator[Union[Tuple[AnyStr, int, int, int], Tuple[AnyStr, int, int]]]:
286
284
//| """Return an iterator whose values describe files and folders within
287
285
//| ``path``"""
288
286
//| ...
289
- //|
290
287
//| def mkdir(self, path: str) -> None:
291
288
//| """Like `os.mkdir`"""
292
289
//| ...
293
- //|
294
290
//| def rmdir(self, path: str) -> None:
295
291
//| """Like `os.rmdir`"""
296
292
//| ...
297
- //|
298
293
//| def stat(self, path: str) -> Tuple[int, int, int, int, int, int, int, int, int, int]:
299
294
//| """Like `os.stat`"""
300
295
//| ...
301
- //|
302
296
//| def statvfs(self, path: int) -> Tuple[int, int, int, int, int, int, int, int, int, int]:
303
297
//| """Like `os.statvfs`"""
304
298
//| ...
305
- //|
306
299
//| def mount(self, readonly: bool, mkfs: VfsFat) -> None:
307
300
//| """Don't call this directly, call `storage.mount`."""
308
301
//| ...
309
- //|
310
302
//| def umount(self) -> None:
311
303
//| """Don't call this directly, call `storage.umount`."""
312
304
//| ...
0 commit comments