gnrc/gomach : Move GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD to 'CONFIG_'
This commit is contained in:
parent
89360577a0
commit
676a39cebb
@ -342,12 +342,12 @@ extern "C" {
|
||||
* After a long period of run time, a radio may be in wrong condition which
|
||||
* needs to be re-calibrated. This is indicated by having a series of
|
||||
* continuous t2u failures (no preambleACK) in GoMacH. In case we have
|
||||
* @ref GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD number of t2u failures, then
|
||||
* @ref CONFIG_GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD number of t2u failures, then
|
||||
* we re-initiate the radio, trying to re-calibrate the radio for bringing it
|
||||
* back to normal condition.
|
||||
*/
|
||||
#ifndef GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD
|
||||
#define GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD (10U)
|
||||
#ifndef CONFIG_GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD
|
||||
#define CONFIG_GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD (10U)
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@ -1474,7 +1474,7 @@ static void gomach_listen_init(gnrc_netif_t *netif)
|
||||
}
|
||||
}
|
||||
|
||||
if (netif->mac.tx.t2u_fail_count >= GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD) {
|
||||
if (netif->mac.tx.t2u_fail_count >= CONFIG_GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD) {
|
||||
netif->mac.tx.t2u_fail_count = 0;
|
||||
LOG_DEBUG("[GOMACH]: Re-initialize radio.");
|
||||
gomach_reinit_radio(netif);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user