Files
ESPEasy/src/WebServer_Favicon.ino
T
Gijs Noorlander da4bb18c7b [ESP32] Rename WebServer object to web_server to fix build issues
ESP32's WebServer class has the same name as our global object had.
So you could only define it in ESPEasy.ino.

Now it is renamed to `web_server` and now ESP32 and ESP8266 will happily build with the global object defined in .h/.cpp.
2020-03-03 01:23:27 +01:00

12 lines
301 B
Arduino

#include "src/Static/WebStaticData.h"
void handle_favicon() {
#ifdef WEBSERVER_FAVICON
checkRAM(F("handle_favicon"));
web_server.send_P(200, PSTR("image/x-icon"), favicon_8b_ico, favicon_8b_ico_len);
#else // ifdef WEBSERVER_FAVICON
handleNotFound();
#endif // ifdef WEBSERVER_FAVICON
}