This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit a03ca8aade5ef53e690ffeba60eaa9541f3b898f Author: Yongrong Wang <[email protected]> AuthorDate: Fri Nov 21 17:53:29 2025 +0800 drivers/rptun: poll for the peer's devices every millisecond rptun_start_thread() retries rptun_create_devices() while the peer has not filled the resource table yet, sleeping 1 s between tries. A peer that is ready a few milliseconds later then costs a whole second of boot time. Sleep 1 ms between tries instead. Signed-off-by: Yongrong Wang <[email protected]> --- drivers/rptun/rptun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c index 52f411730d3..939f9a62ed0 100644 --- a/drivers/rptun/rptun.c +++ b/drivers/rptun/rptun.c @@ -55,7 +55,7 @@ * Pre-processor Definitions ****************************************************************************/ -#define RPTUN_RETRY_PERIOD_US 1000000 +#define RPTUN_RETRY_PERIOD_US 1000 #define RPTUN_STATUS_CHECK(s, v) ((s) & (1u << (v))) != 0 #define RPTUN_STATUS_SET(s, v) ((s) |= (1u << (v)))
