diff --git a/adafruit_pyportal.py b/adafruit_pyportal.py index 66a8044..8ba3365 100644 --- a/adafruit_pyportal.py +++ b/adafruit_pyportal.py @@ -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