This commit is contained in:
Peter D. Gray 2024-04-24 10:25:38 -04:00
parent 762819a87e
commit 1431c2a58d
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

View File

@ -231,11 +231,11 @@ class CardSlot:
@classmethod
def is_inserted(cls):
# debounce?
# Sense is inverted on Mk4, and true on Q.
if cls.mux:
return (cls.sd_detect() == 0) or (cls.sd_detect2() == 0)
else:
return cls.sd_detect() == 0
return cls.sd_detect() == 1
def __init__(self, force_vdisk=False, readonly=False, slot_b=None):
self.mountpt = None