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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions adafruit_pyportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,13 @@ def image_converter_url(image_url, width, height, color_depth=16):
return IMAGE_CONVERTER_SERVICE % (aio_username, aio_key,
width, height,
color_depth, image_url)
def sd_check(self):
"""Returns True if there is an SD card preset and False
if there is no SD card. The _sdcard value is set in _init
"""
if self._sdcard:
return True
return False

def push_to_io(self, feed_key, data):
# pylint: disable=line-too-long
Expand Down