From 41d42a7dedb71cc2787d0a88cf942783fe13028c Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Mon, 2 Aug 2021 20:50:49 +0200 Subject: [PATCH] Http images for Arduino only --- src/hasp/hasp_attribute.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hasp/hasp_attribute.cpp b/src/hasp/hasp_attribute.cpp index a8e00f07..5fd52039 100644 --- a/src/hasp/hasp_attribute.cpp +++ b/src/hasp/hasp_attribute.cpp @@ -1007,6 +1007,7 @@ static hasp_attribute_type_t special_attribute_src(lv_obj_t* obj, const char* pa if(payload != strstr_P(payload, PSTR("http://"))) { lv_img_set_src(obj, payload); } else { +#ifdef ARDUINO HTTPClient http; http.begin(payload); int httpCode = http.GET(); @@ -1077,6 +1078,7 @@ static hasp_attribute_type_t special_attribute_src(lv_obj_t* obj, const char* pa } else { LOG_WARNING(TAG_ATTR, "HTTP result %d", httpCode); } +#endif } } else { switch(lv_img_src_get_type(obj)) {