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.
pull/1/head
Damien George 2019-07-03 12:47:13 +10:00
parent 79b6688558
commit fad3d08d2d
1 changed files with 1 additions and 1 deletions

View File

@ -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;