[En-Nut-Discussion] Latest fix in tcpsm.c and tcpout.c
Harald Kipp
harald.kipp at egnite.de
Fri Apr 11 15:01:48 CEST 2008
Alain M. wrote:
> May I guggest somining like:
>
> if ( ! ++count ) count = MAXUINT; // if unsigned
>
> if ( (++count) < 0 ) count=MAXINT; // if signed
>
> In a way that will not use more memory and also be compatible with AVR
> and ARM.
Alain,
May I assume that you misunderstood the function? Or did I miss something?
The retransmission timer samples the current system tick count. Later
the difference between the sampled value and the current tick counter
value is used to decide whether a retransmission should be initiated.
Harald
More information about the En-Nut-Discussion
mailing list