From eefcb0e05dfba96961bb424e8e80e299f7f86987 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sat, 21 Jun 2025 10:17:09 +0200 Subject: [PATCH] picotcp: improve ppp dump time resolution --- core/deps/picotcp/modules/pico_dev_ppp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/deps/picotcp/modules/pico_dev_ppp.c b/core/deps/picotcp/modules/pico_dev_ppp.c index f0cb76712..dcffaceef 100644 --- a/core/deps/picotcp/modules/pico_dev_ppp.c +++ b/core/deps/picotcp/modules/pico_dev_ppp.c @@ -319,7 +319,7 @@ static void pppdump(uint8_t *buf, int len, int egress) last_time_ms = PICO_TIME_MS(); } - uint32_t delta = (PICO_TIME_MS() - last_time_ms) / 100; + uint32_t delta = PICO_TIME_MS() / 100 - last_time_ms / 100; if (delta < 256) { fputc(6, dumpfp); // Time step (short)