From 2291f9a8faed762fe387ae9f7a4c61c838433514 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 25 Apr 2018 21:27:58 +0200 Subject: [PATCH] tftp: decrease TFTP_TIMER_MSECS This timeout is used to measure TFTP_TIMEOUT_MSECS fine enough. Calling tftp_tmr at a 50ms interval to handle a 1 seconds timeout produces way too much cpu load (and prevents sleep). Signed-off-by: goldsimon --- src/include/lwip/apps/tftp_opts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/lwip/apps/tftp_opts.h b/src/include/lwip/apps/tftp_opts.h index 6f2adf61..198f632b 100644 --- a/src/include/lwip/apps/tftp_opts.h +++ b/src/include/lwip/apps/tftp_opts.h @@ -82,7 +82,7 @@ * TFTP timer cyclic interval */ #if !defined TFTP_TIMER_MSECS || defined __DOXYGEN__ -#define TFTP_TIMER_MSECS 50 +#define TFTP_TIMER_MSECS (TFTP_TIMEOUT_MSECS / 10) #endif /**