Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 18ac673

Browse files
author
Maurice Makaay
committed
Define one_day var as a const.
1 parent 6f37967 commit 18ac673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncTCP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ int8_t AsyncClient::_poll(tcp_pcb* pcb){
975975

976976
// ACK Timeout
977977
if(_ack_timeout){
978-
uint32_t one_day = 86400000;
978+
const uint32_t one_day = 86400000;
979979
bool last_tx_is_after_last_ack = (_rx_last_ack - _tx_last_packet + one_day) < one_day;
980980
if(last_tx_is_after_last_ack && (now - _tx_last_packet) >= _ack_timeout) {
981981
log_w("ack timeout %d", pcb->state);

0 commit comments

Comments
 (0)