mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +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 {
|
||||
#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;
|
||||
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);
|
||||
}
|
||||
http.end();
|
||||
#endif
|
||||
#endif // HASP_USE_NETWORK
|
||||
#endif // ESP32
|
||||
}
|
||||
} else {
|
||||
const void* src = lv_img_get_src(obj);
|
||||
|
Loading…
x
Reference in New Issue
Block a user