mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Check for HASP_USE_WIFI or HASP_USE_ETHERNET
This commit is contained in:
parent
24254cc3a1
commit
f18403d9c3
@ -1320,7 +1320,8 @@ static hasp_attribute_type_t special_attribute_src(lv_obj_t* obj, const char* pa
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
#if defined(ARDUINO) && defined(ARDUINO_ARCH_ESP32) && 1
|
#if defined(ARDUINO) && defined(ARDUINO_ARCH_ESP32)
|
||||||
|
#if HASP_USE_WIFI > 0 || HASP_USE_ETHERNET > 0
|
||||||
HTTPClient http;
|
HTTPClient http;
|
||||||
http.begin(payload);
|
http.begin(payload);
|
||||||
|
|
||||||
@ -1462,7 +1463,8 @@ static hasp_attribute_type_t special_attribute_src(lv_obj_t* obj, const char* pa
|
|||||||
LOG_WARNING(TAG_ATTR, "HTTP result %d", httpCode);
|
LOG_WARNING(TAG_ATTR, "HTTP result %d", httpCode);
|
||||||
}
|
}
|
||||||
http.end();
|
http.end();
|
||||||
#endif
|
#endif // HASP_USE_NETWORK
|
||||||
|
#endif // ESP32
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const void* src = lv_img_get_src(obj);
|
const void* src = lv_img_get_src(obj);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user