gnrc/tcp : Move GNRC_TCP_PROBE_UPPER_BOUND to 'CONFIG_'
This commit is contained in:
parent
d6904349a9
commit
49df2258e3
@ -163,8 +163,8 @@ extern "C" {
|
||||
/**
|
||||
* @brief Upper bound for the duration between probes
|
||||
*/
|
||||
#ifndef GNRC_TCP_PROBE_UPPER_BOUND
|
||||
#define GNRC_TCP_PROBE_UPPER_BOUND (60U * US_PER_SEC)
|
||||
#ifndef CONFIG_GNRC_TCP_PROBE_UPPER_BOUND
|
||||
#define CONFIG_GNRC_TCP_PROBE_UPPER_BOUND (60U * US_PER_SEC)
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
|
||||
@ -551,8 +551,8 @@ ssize_t gnrc_tcp_send(gnrc_tcp_tcb_t *tcb, const void *data, const size_t len,
|
||||
if (probe_timeout_duration_us < CONFIG_GNRC_TCP_PROBE_LOWER_BOUND) {
|
||||
probe_timeout_duration_us = CONFIG_GNRC_TCP_PROBE_LOWER_BOUND;
|
||||
}
|
||||
else if (probe_timeout_duration_us > GNRC_TCP_PROBE_UPPER_BOUND) {
|
||||
probe_timeout_duration_us = GNRC_TCP_PROBE_UPPER_BOUND;
|
||||
else if (probe_timeout_duration_us > CONFIG_GNRC_TCP_PROBE_UPPER_BOUND) {
|
||||
probe_timeout_duration_us = CONFIG_GNRC_TCP_PROBE_UPPER_BOUND;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user