[WebSocket] Fix Web write mode.

This commit is contained in:
Fabio Alessandrelli 2022-10-13 16:46:48 +02:00
parent 99bc4905cb
commit 7464f39de8

View file

@ -120,7 +120,7 @@ Error EMWSPeer::_send(const uint8_t *p_buffer, int p_buffer_size, bool p_binary)
}
Error EMWSPeer::send(const uint8_t *p_buffer, int p_buffer_size, WriteMode p_mode) {
return _send(p_buffer, p_buffer_size, p_mode == WRITE_MODE_TEXT);
return _send(p_buffer, p_buffer_size, p_mode == WRITE_MODE_BINARY);
}
Error EMWSPeer::put_packet(const uint8_t *p_buffer, int p_buffer_size) {