diff options
author | Damien George <damien.p.george@gmail.com> | 2019-07-03 12:47:13 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-07-03 12:47:13 +1000 |
commit | fad3d08d2df4b7e62627969510c1507615c5ad3c (patch) | |
tree | 9e8d06304e9bdd81e23a688f7a92d9d78f2be07c | |
parent | 79b66885583925cc0854f32f487627d4d188ed64 (diff) |
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.
-rw-r--r-- | extmod/moduwebsocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |