mirror of
https://github.com/esphome/esphome.git
synced 2025-08-01 16:07:47 +00:00
merge
This commit is contained in:
parent
f0b311f839
commit
663f38d2ec
@ -205,7 +205,6 @@ void APIConnection::loop() {
|
||||
start_time = millis();
|
||||
static uint8_t max_ping_retries = 60;
|
||||
static uint16_t ping_retry_interval = 1000;
|
||||
const uint32_t now = App.get_loop_component_start_time();
|
||||
if (this->sent_ping_) {
|
||||
// Disconnect if not responded within 2.5*keepalive
|
||||
if (now - this->last_traffic_ > (KEEPALIVE_TIMEOUT_MS * 5) / 2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user