gnrc/tcp : Move GNRC_TCP_PROBE_UPPER_BOUND to 'CONFIG_'

This commit is contained in:
Akshai M 2020-05-14 17:41:37 +05:30
parent d6904349a9
commit 49df2258e3
2 changed files with 4 additions and 4 deletions

View File

@ -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
/** @} */

View File

@ -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;