From 18ac673e82bfd2542c0ba12f10615963c13fb5b9 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Thu, 6 May 2021 00:41:06 +0200 Subject: [PATCH] Define one_day var as a const. --- src/AsyncTCP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncTCP.cpp b/src/AsyncTCP.cpp index 771c0a8..59ef186 100644 --- a/src/AsyncTCP.cpp +++ b/src/AsyncTCP.cpp @@ -975,7 +975,7 @@ int8_t AsyncClient::_poll(tcp_pcb* pcb){ // ACK Timeout if(_ack_timeout){ - uint32_t one_day = 86400000; + const uint32_t one_day = 86400000; bool last_tx_is_after_last_ack = (_rx_last_ack - _tx_last_packet + one_day) < one_day; if(last_tx_is_after_last_ack && (now - _tx_last_packet) >= _ack_timeout) { log_w("ack timeout %d", pcb->state);