mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-14 18:46:59 +00:00
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.
12 lines
301 B
Arduino
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
|
|
}
|