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
parent
79b6688558
commit
fad3d08d2d
|
@ -194,7 +194,7 @@ no_payload:
|
||||||
if (last_state == CONTROL) {
|
if (last_state == CONTROL) {
|
||||||
byte frame_type = self->last_flags & FRAME_OPCODE_MASK;
|
byte frame_type = self->last_flags & FRAME_OPCODE_MASK;
|
||||||
if (frame_type == FRAME_CLOSE) {
|
if (frame_type == FRAME_CLOSE) {
|
||||||
static char close_resp[2] = {0x88, 0};
|
static const char close_resp[2] = {0x88, 0};
|
||||||
int err;
|
int err;
|
||||||
websocket_write(self_in, close_resp, sizeof(close_resp), &err);
|
websocket_write(self_in, close_resp, sizeof(close_resp), &err);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue