save some bytes in RAM, forgot to put favicon to PROGMEM

This commit is contained in:
DeltaLima 2025-04-09 13:48:56 +02:00
parent f601dfd7cd
commit 7570a40205

View file

@ -1,4 +1,4 @@
unsigned char File_favicon_ico_gz[] = {
const unsigned char File_favicon_ico_gz[] PROGMEM= {
0x1f, 0x8b, 0x08, 0x08, 0x11, 0x71, 0x19, 0x67, 0x00, 0x03, 0x43, 0x61,
0x6e, 0x47, 0x72, 0x6f, 0x77, 0x5f, 0x66, 0x61, 0x76, 0x69, 0x63, 0x6f,
0x2e, 0x69, 0x63, 0x6f, 0x00, 0xed, 0x94, 0x49, 0x4b, 0xc3, 0x40, 0x18,
@ -28,7 +28,7 @@ unsigned char File_favicon_ico_gz[] = {
0xff, 0x74, 0x4a, 0xbf, 0xf9, 0x02, 0x31, 0x98, 0x4b, 0x6b, 0x7e, 0x05,
0x00, 0x00
};
unsigned int File_favicon_ico_gz_len = 326;
const unsigned int File_favicon_ico_gz_len = 326;
void WebFile_favicon_ico(AsyncWebServerRequest *request) {
AsyncWebServerResponse *response = request->beginResponse_P(200, F("image/x-icon"), File_favicon_ico_gz, File_favicon_ico_gz_len);