1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 04:12:23 +01:00

test disable no delay (#1026)

* test disable no delay

* removed set_nodelay code
This commit is contained in:
Guillermo Ruffino
2020-04-30 23:00:57 -03:00
committed by GitHub
parent d49ee47018
commit 14e9375262
5 changed files with 1 additions and 43 deletions

View File

@@ -137,7 +137,6 @@ void APIConnection::loop() {
// bool done = 3;
bool done = this->image_reader_.available() == to_send;
buffer.encode_bool(3, done);
this->set_nodelay(false);
bool success = this->send_buffer(buffer, 44);
if (success) {
@@ -558,8 +557,6 @@ bool APIConnection::send_log_message(int level, const char *tag, const char *lin
if (this->log_subscription_ < level)
return false;
this->set_nodelay(false);
// Send raw so that we don't copy too much
auto buffer = this->create_buffer();
// LogLevel level = 1;