I've updated in the changes from adafruit/master into the branch used for PR #34.
I tested this library change using this code:
from adafruit_pyportal import PyPortal
pyportal = PyPortal()
if pyportal.sd_check():
print("SD card is installed")
else:
print("SD card is NOT installed")
It does work as expected, correctly printing the SD state depending on whether the physical SD card is plugged in or not.
I've updated in the changes from adafruit/master into the branch used for PR #34.
I tested this library change using this code:
It does work as expected, correctly printing the SD state depending on whether the physical SD card is plugged in or not.