mirror of
https://github.com/me-no-dev/AsyncTCP.git
synced 2025-08-07 06:34:30 +02:00
Define one_day var as a const.
This commit is contained in:
@@ -975,7 +975,7 @@ int8_t AsyncClient::_poll(tcp_pcb* pcb){
|
|||||||
|
|
||||||
// ACK Timeout
|
// ACK Timeout
|
||||||
if(_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;
|
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) {
|
if(last_tx_is_after_last_ack && (now - _tx_last_packet) >= _ack_timeout) {
|
||||||
log_w("ack timeout %d", pcb->state);
|
log_w("ack timeout %d", pcb->state);
|
||||||
|
Reference in New Issue
Block a user