bugfix, cleanup

This commit is contained in:
Peter D. Gray 2024-02-19 10:56:23 -05:00
parent d4885cc30a
commit 4ad0326ec3
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -15,16 +15,12 @@ def is_dir(fname):
return True
return False
def _try_microsd(bad_fs_ok=False):
def _try_microsd():
# Power up, mount the SD card, return False if we can't for some reason.
# - we know card is there already, and mux set appropriately
#
# If we're about to reformat, we don't need a working filesystem
sd = pyb.SDCard()
if not sd.present(): # on Q will always be "present"
return False
if ckcc.is_simulator():
return True