Skip to content
Snippets Groups Projects
Commit fad3d08d authored by Damien George's avatar Damien George
Browse files

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.
parent 79b66885
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment