From c37622b4a093e1b0cfe85c63e2912d70ddee6de5 Mon Sep 17 00:00:00 2001 From: Scott Powell Date: Mon, 12 May 2025 12:23:58 +1000 Subject: [PATCH] * repeater: neighbors CLI, now returns secs ago, not timestamp --- examples/simple_repeater/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/simple_repeater/main.cpp b/examples/simple_repeater/main.cpp index c1c555c7..26923c77 100644 --- a/examples/simple_repeater/main.cpp +++ b/examples/simple_repeater/main.cpp @@ -675,7 +675,8 @@ public: mesh::Utils::toHex(hex, neighbour->id.pub_key, 4); // add next neighbour - sprintf(dp, "%s:%d:%d", hex, neighbour->advert_timestamp, neighbour->snr); + uint32_t secs_ago = getRTCClock()->getCurrentTime() - neighbour->heard_timestamp; + sprintf(dp, "%s:%d:%d", hex, secs_ago, neighbour->snr); while (*dp) dp++; // find end of string } #endif