From fad3d08d2df4b7e62627969510c1507615c5ad3c Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 3 Jul 2019 12:47:13 +1000 Subject: [PATCH] extmod/moduwebsocket: Make close_resp static array const to not use RAM. The esp8266 lwip_open library is compiled with -mforce-l32 so this array does not need to be in RAM. --- extmod/moduwebsocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extmod/moduwebsocket.c b/extmod/moduwebsocket.c index eb5e20c6e..d90ee49a7 100644 --- a/extmod/moduwebsocket.c +++ b/extmod/moduwebsocket.c @@ -194,7 +194,7 @@ no_payload: if (last_state == CONTROL) { byte frame_type = self->last_flags & FRAME_OPCODE_MASK; if (frame_type == FRAME_CLOSE) { - static char close_resp[2] = {0x88, 0}; + static const char close_resp[2] = {0x88, 0}; int err; websocket_write(self_in, close_resp, sizeof(close_resp), &err); return 0;