Skip to content

Update to PR #34 #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

Update to PR #34 #62

wants to merge 4 commits into from

Conversation

FoamyGuy
Copy link
Contributor

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.

kschinck and others added 4 commits May 12, 2019 14:18
Both __init__ and fetch access the in self._sdcard parameter to determine
if a SD card is installed. __init__ handles the mounting of the card.
fetch() alters the filename path as needed prior to calling wget(). This
new function will allow the calling of pyportal.sd_check() to determine
if a card is present and alter operations as needed.
Simple example:
if pyportal.sdcheck():
    print("SD card is installed")
else:
    print("SD card is NOT installed")
pulling changes from adafruit / master
@FoamyGuy FoamyGuy closed this Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants