Skip to content

Commit c320ab8

Browse files
Make GIF example use static const array
1 parent a0b94c6 commit c320ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WebServer/examples/HelloServer/HelloServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void setup(void) {
6868
});
6969

7070
server.on("/gif", []() {
71-
uint8_t gif[] = {
71+
static const uint8_t gif[] = {
7272
0x47, 0x49, 0x46, 0x38, 0x37, 0x61, 0x10, 0x00, 0x10, 0x00, 0x80, 0x01,
7373
0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x2c, 0x00, 0x00, 0x00, 0x00,
7474
0x10, 0x00, 0x10, 0x00, 0x00, 0x02, 0x19, 0x8c, 0x8f, 0xa9, 0xcb, 0x9d,

0 commit comments

Comments
 (0)